blob: 4c509d7681fc8c58d8d6421beee5ce5391d38c3b [file] [log] [blame]
Eric Fiselier2f746d42015-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
40#if _LIBCPP_STD_VER > 11
41
42_LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS
43
44#if __has_feature(cxx_variable_templates)
45
46template <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v
47 = treat_as_floating_point<_Rep>::value;
48
49#endif /* __has_feature(cxx_variable_templates) */
50
51_LIBCPP_END_NAMESPACE_CHRONO_LFTS
52
53#endif /* _LIBCPP_STD_VER > 11 */
54
55#endif /* _LIBCPP_EXPERIMENTAL_CHRONO */