Eric Fiselier | 665613f | 2015-02-02 21:05:47 +0000 | [diff] [blame] | 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 | |
| 11 | #ifndef _LIBCPP_EXPERIMENTAL_CHRONO |
| 12 | #define _LIBCPP_EXPERIMENTAL_CHRONO |
| 13 | |
| 14 | /** |
| 15 | experimental/chrono synopsis |
| 16 | |
| 17 | // C++1y |
| 18 | |
| 19 | #include <chrono> |
| 20 | |
| 21 | namespace std { |
| 22 | namespace chrono { |
| 23 | namespace experimental { |
| 24 | inline namespace fundamentals_v1 { |
| 25 | |
| 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; |
| 29 | |
| 30 | } // namespace fundamentals_v1 |
| 31 | } // namespace experimental |
| 32 | } // namespace chrono |
| 33 | } // namespace std |
| 34 | |
| 35 | */ |
| 36 | |
| 37 | #include <experimental/__config> |
| 38 | #include <chrono> |
| 39 | |
Eric Fiselier | 47b9a9a | 2015-02-10 17:32:49 +0000 | [diff] [blame^] | 40 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 41 | #pragma GCC system_header |
| 42 | #endif |
| 43 | |
Eric Fiselier | 665613f | 2015-02-02 21:05:47 +0000 | [diff] [blame] | 44 | #if _LIBCPP_STD_VER > 11 |
| 45 | |
| 46 | _LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS |
| 47 | |
| 48 | #if __has_feature(cxx_variable_templates) |
| 49 | |
| 50 | template <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v |
| 51 | = treat_as_floating_point<_Rep>::value; |
| 52 | |
| 53 | #endif /* __has_feature(cxx_variable_templates) */ |
| 54 | |
| 55 | _LIBCPP_END_NAMESPACE_CHRONO_LFTS |
| 56 | |
| 57 | #endif /* _LIBCPP_STD_VER > 11 */ |
| 58 | |
Eric Fiselier | 5495e2e | 2015-02-10 17:20:18 +0000 | [diff] [blame] | 59 | #endif /* _LIBCPP_EXPERIMENTAL_CHRONO */ |