2 //===------------------------------ chrono ---------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef _LIBCPP_EXPERIMENTAL_CHRONO
12 #define _LIBCPP_EXPERIMENTAL_CHRONO
15 experimental/chrono synopsis
23 namespace experimental {
24 inline namespace fundamentals_v1 {
26 // See C++14 20.12.4, customization traits
27 template <class Rep> constexpr bool treat_as_floating_point_v
28 = treat_as_floating_point<Rep>::value;
30 } // namespace fundamentals_v1
31 } // namespace experimental
37 #include <experimental/__config>
40 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
41 #pragma GCC system_header
44 #if _LIBCPP_STD_VER > 11
46 _LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS
48 #ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
50 template <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v
51 = treat_as_floating_point<_Rep>::value;
53 #endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */
55 _LIBCPP_END_NAMESPACE_CHRONO_LFTS
57 #endif /* _LIBCPP_STD_VER > 11 */
59 #endif /* _LIBCPP_EXPERIMENTAL_CHRONO */