1*0a6a1f1dSLionel Sambuc// -*- C++ -*- 2*0a6a1f1dSLionel Sambuc//===------------------------------ chrono ---------------------------------===// 3*0a6a1f1dSLionel Sambuc// 4*0a6a1f1dSLionel Sambuc// The LLVM Compiler Infrastructure 5*0a6a1f1dSLionel Sambuc// 6*0a6a1f1dSLionel Sambuc// This file is distributed under the University of Illinois Open Source 7*0a6a1f1dSLionel Sambuc// License. See LICENSE.TXT for details. 8*0a6a1f1dSLionel Sambuc// 9*0a6a1f1dSLionel Sambuc//===----------------------------------------------------------------------===// 10*0a6a1f1dSLionel Sambuc 11*0a6a1f1dSLionel Sambuc#ifndef _LIBCPP_EXPERIMENTAL_CHRONO 12*0a6a1f1dSLionel Sambuc#define _LIBCPP_EXPERIMENTAL_CHRONO 13*0a6a1f1dSLionel Sambuc 14*0a6a1f1dSLionel Sambuc/** 15*0a6a1f1dSLionel Sambuc experimental/chrono synopsis 16*0a6a1f1dSLionel Sambuc 17*0a6a1f1dSLionel Sambuc// C++1y 18*0a6a1f1dSLionel Sambuc 19*0a6a1f1dSLionel Sambuc#include <chrono> 20*0a6a1f1dSLionel Sambuc 21*0a6a1f1dSLionel Sambucnamespace std { 22*0a6a1f1dSLionel Sambucnamespace chrono { 23*0a6a1f1dSLionel Sambucnamespace experimental { 24*0a6a1f1dSLionel Sambucinline namespace fundamentals_v1 { 25*0a6a1f1dSLionel Sambuc 26*0a6a1f1dSLionel Sambuc // See C++14 20.12.4, customization traits 27*0a6a1f1dSLionel Sambuc template <class Rep> constexpr bool treat_as_floating_point_v 28*0a6a1f1dSLionel Sambuc = treat_as_floating_point<Rep>::value; 29*0a6a1f1dSLionel Sambuc 30*0a6a1f1dSLionel Sambuc} // namespace fundamentals_v1 31*0a6a1f1dSLionel Sambuc} // namespace experimental 32*0a6a1f1dSLionel Sambuc} // namespace chrono 33*0a6a1f1dSLionel Sambuc} // namespace std 34*0a6a1f1dSLionel Sambuc 35*0a6a1f1dSLionel Sambuc */ 36*0a6a1f1dSLionel Sambuc 37*0a6a1f1dSLionel Sambuc#include <experimental/__config> 38*0a6a1f1dSLionel Sambuc#include <chrono> 39*0a6a1f1dSLionel Sambuc 40*0a6a1f1dSLionel Sambuc#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 41*0a6a1f1dSLionel Sambuc#pragma GCC system_header 42*0a6a1f1dSLionel Sambuc#endif 43*0a6a1f1dSLionel Sambuc 44*0a6a1f1dSLionel Sambuc#if _LIBCPP_STD_VER > 11 45*0a6a1f1dSLionel Sambuc 46*0a6a1f1dSLionel Sambuc_LIBCPP_BEGIN_NAMESPACE_CHRONO_LFTS 47*0a6a1f1dSLionel Sambuc 48*0a6a1f1dSLionel Sambuc#ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES 49*0a6a1f1dSLionel Sambuc 50*0a6a1f1dSLionel Sambuctemplate <class _Rep> _LIBCPP_CONSTEXPR bool treat_as_floating_point_v 51*0a6a1f1dSLionel Sambuc = treat_as_floating_point<_Rep>::value; 52*0a6a1f1dSLionel Sambuc 53*0a6a1f1dSLionel Sambuc#endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */ 54*0a6a1f1dSLionel Sambuc 55*0a6a1f1dSLionel Sambuc_LIBCPP_END_NAMESPACE_CHRONO_LFTS 56*0a6a1f1dSLionel Sambuc 57*0a6a1f1dSLionel Sambuc#endif /* _LIBCPP_STD_VER > 11 */ 58*0a6a1f1dSLionel Sambuc 59*0a6a1f1dSLionel Sambuc#endif /* _LIBCPP_EXPERIMENTAL_CHRONO */ 60