/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.nonmember/ |
D | op_+.pass.cpp | 29 typedef std::chrono::microseconds Duration2; in main() typedef 32 std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 33 assert(t2.time_since_epoch() == Duration2(3005)); in main() 34 t2 = Duration2(6) + t1; in main() 35 assert(t2.time_since_epoch() == Duration2(3006)); in main() 40 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 + Duration2(5); in main() 41 static_assert(t2.time_since_epoch() == Duration2(3005), ""); in main() 42 constexpr std::chrono::time_point<Clock, Duration2> t3 = Duration2(6) + t1; in main() 43 static_assert(t3.time_since_epoch() == Duration2(3006), ""); in main()
|
D | op_-time_point.pass.cpp | 25 typedef std::chrono::microseconds Duration2; in main() typedef 28 std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main() 29 assert((t1 - t2) == Duration2(2995)); in main() 34 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(5)); in main() 35 static_assert((t1 - t2) == Duration2(2995), ""); in main()
|
D | op_-duration.pass.cpp | 25 typedef std::chrono::microseconds Duration2; in main() typedef 28 std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main() 29 assert(t2.time_since_epoch() == Duration2(2995)); in main() 34 constexpr std::chrono::time_point<Clock, Duration2> t2 = t1 - Duration2(5); in main() 35 static_assert(t2.time_since_epoch() == Duration2(2995), ""); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.cons/ |
D | convert.pass.cpp | 24 typedef std::chrono::milliseconds Duration2; in main() typedef 26 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main() 32 constexpr std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
|
D | convert.fail.cpp | 25 typedef std::chrono::microseconds Duration2; in main() typedef 27 std::chrono::time_point<Clock, Duration2> t2(Duration2(3)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.comparisons/ |
D | op_equal.pass.cpp | 29 typedef std::chrono::microseconds Duration2; in main() typedef 31 typedef std::chrono::time_point<Clock, Duration2> T2; in main() 47 T2 t2(Duration2(3000)); in main() 53 T2 t2(Duration2(3001)); in main() 73 constexpr T2 t2(Duration2(3000)); in main() 79 constexpr T2 t2(Duration2(3001)); in main()
|
D | op_less.pass.cpp | 37 typedef std::chrono::microseconds Duration2; in main() typedef 39 typedef std::chrono::time_point<Clock, Duration2> T2; in main() 59 T2 t2(Duration2(3000)); in main() 67 T2 t2(Duration2(3001)); in main() 93 constexpr T2 t2(Duration2(3000)); in main() 101 constexpr T2 t2(Duration2(3001)); in main()
|
D | op_equal.fail.cpp | 33 typedef std::chrono::microseconds Duration2; in main() typedef 35 typedef std::chrono::time_point<Clock2, Duration2> T2; in main() 38 T2 t2(Duration2(3000)); in main()
|
D | op_less.fail.cpp | 41 typedef std::chrono::microseconds Duration2; in main() typedef 43 typedef std::chrono::time_point<Clock2, Duration2> T2; in main() 46 T2 t2(Duration2(3000)); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/ |
D | chrono | 118 template <class Duration2> 119 time_point(const time_point<clock, Duration2>& t); // constexpr in C++14 142 template <class Clock, class Duration1, class Duration2> 143 struct common_type<chrono::time_point<Clock, Duration1>, chrono::time_point<Clock, Duration2>>; 201 template <class Rep1, class Period1, class Clock, class Duration2> 202 time_point<Clock, typename common_type<duration<Rep1, Period1>, Duration2>::type> 203 operator+(const duration<Rep1, Period1>& lhs, const time_point<Clock, Duration2>& rhs); 207 template <class Clock, class Duration1, class Duration2> 208 typename common_type<Duration1, Duration2>::type 209 operator-(const time_point<Clock, Duration1>& lhs, const time_point<Clock, Duration2>& rhs); [all …]
|