Path: blob/main/contrib/llvm-project/libcxx/include/__chrono/concepts.h
35262 views
// -*- C++ -*-1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//89#ifndef _LIBCPP___CHRONO_CONCEPTS_H10#define _LIBCPP___CHRONO_CONCEPTS_H1112#include <__chrono/hh_mm_ss.h>13#include <__chrono/time_point.h>14#include <__config>15#include <__type_traits/is_specialization.h>1617#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)18# pragma GCC system_header19#endif2021_LIBCPP_BEGIN_NAMESPACE_STD2223#if _LIBCPP_STD_VER >= 202425template <class _Tp>26concept __is_hh_mm_ss = __is_specialization_v<_Tp, chrono::hh_mm_ss>;2728template <class _Tp>29concept __is_time_point = __is_specialization_v<_Tp, chrono::time_point>;3031#endif // _LIBCPP_STD_VER >= 203233_LIBCPP_END_NAMESPACE_STD3435#endif // _LIBCPP___CHRONO_CONCEPTS_H363738