chrono 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // -*- C++ -*-
  2. //===------------------------------ chrono ---------------------------------===//
  3. //
  4. // The LLVM Compiler Infrastructure
  5. //
  6. // This file is distributed under the University of Illinois Open Source
  7. // License. See LICENSE.TXT for details.
  8. //
  9. //===----------------------------------------------------------------------===//
  10. #ifndef _LIBCPP_EXPERIMENTAL_CHRONO
  11. #define _LIBCPP_EXPERIMENTAL_CHRONO
  12. /**
  13. experimental/chrono synopsis
  14. // C++1y
  15. #include <chrono>
  16. namespace std {
  17. namespace chrono {
  18. namespace experimental {
  19. inline namespace fundamentals_v1 {
  20. // See C++14 20.12.4, customization traits
  21. template <class Rep> constexpr bool treat_as_floating_point_v
  22. = treat_as_floating_point<Rep>::value;
  23. } // namespace fundamentals_v1
  24. } // namespace experimental
  25. } // namespace chrono
  26. } // namespace std
  27. */
  28. #include <experimental/__config>
  29. #include <chrono>
  30. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  31. #pragma GCC system_header
  32. #endif
  33. #if _LIBCPP_STD_VER > 11
  34. _LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS
  35. #ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
  36. template <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v
  37. = treat_as_floating_point<_Rep>::value;
  38. #endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */
  39. _LIBCPP_END_NAMESPACE_CHRONO_LFTS
  40. #endif /* _LIBCPP_STD_VER > 11 */
  41. #endif /* _LIBCPP_EXPERIMENTAL_CHRONO */