blob: 738ded8824bd8c4a29eadbdcf51c3290501d6057 [file] [log] [blame]
Eric Fiselier665613f2015-02-02 21:05:47 +00001// -*- 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
21namespace std {
22namespace chrono {
23namespace experimental {
24inline 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 Fiselier47b9a9a2015-02-10 17:32:49 +000040#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
41#pragma GCC system_header
42#endif
43
Eric Fiselier665613f2015-02-02 21:05:47 +000044#if _LIBCPP_STD_VER > 11
45
46_LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS
47
48#if __has_feature(cxx_variable_templates)
49
50template <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 Fiselier5495e2e2015-02-10 17:20:18 +000059#endif /* _LIBCPP_EXPERIMENTAL_CHRONO */