noexcept for <chrono>.
llvm-svn: 132265
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: d53d81522d5cab1684c1bc19986bac1d32a3aaa6
diff --git a/include/chrono b/include/chrono
index 97b0c81..e5b9a49 100644
--- a/include/chrono
+++ b/include/chrono
@@ -225,9 +225,9 @@
typedef chrono::time_point<system_clock> time_point;
static const bool is_steady = false;
- static time_point now();
- static time_t to_time_t (const time_point& __t);
- static time_point from_time_t(time_t __t);
+ static time_point now() noexcept;
+ static time_t to_time_t (const time_point& __t) noexcept;
+ static time_point from_time_t(time_t __t) noexcept;
};
class steady_clock
@@ -239,7 +239,7 @@
typedef chrono::time_point<steady_clock, duration> time_point;
static const bool is_steady = true;
- static time_point now();
+ static time_point now() noexcept;
};
typedef steady_clock high_resolution_clock;
@@ -845,9 +845,9 @@
typedef chrono::time_point<system_clock> time_point;
static const bool is_steady = false;
- static time_point now();
- static time_t to_time_t (const time_point& __t);
- static time_point from_time_t(time_t __t);
+ static time_point now() _NOEXCEPT;
+ static time_t to_time_t (const time_point& __t) _NOEXCEPT;
+ static time_point from_time_t(time_t __t) _NOEXCEPT;
};
class _LIBCPP_VISIBLE steady_clock
@@ -859,7 +859,7 @@
typedef chrono::time_point<steady_clock, duration> time_point;
static const bool is_steady = true;
- static time_point now();
+ static time_point now() _NOEXCEPT;
};
typedef steady_clock high_resolution_clock;