1287518Sdim// -*- C++ -*- 2287518Sdim//===-------------------------- system_error ------------------------------===// 3287518Sdim// 4287518Sdim// The LLVM Compiler Infrastructure 5287518Sdim// 6287518Sdim// This file is dual licensed under the MIT and the University of Illinois Open 7287518Sdim// Source Licenses. See LICENSE.TXT for details. 8287518Sdim// 9287518Sdim//===----------------------------------------------------------------------===// 10287518Sdim 11287518Sdim#ifndef _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR 12287518Sdim#define _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR 13287518Sdim 14287518Sdim/** 15287518Sdim experimental/system_error synopsis 16287518Sdim 17287518Sdim// C++1y 18287518Sdim 19287518Sdim#include <system_error> 20287518Sdim 21287518Sdimnamespace std { 22287518Sdimnamespace experimental { 23287518Sdiminline namespace fundamentals_v1 { 24287518Sdim 25287518Sdim // See C++14 19.5, System error support 26287518Sdim template <class T> constexpr bool is_error_code_enum_v 27287518Sdim = is_error_code_enum<T>::value; 28287518Sdim template <class T> constexpr bool is_error_condition_enum_v 29287518Sdim = is_error_condition_enum<T>::value; 30287518Sdim 31287518Sdim} // namespace fundamentals_v1 32287518Sdim} // namespace experimental 33287518Sdim} // namespace std 34287518Sdim 35287518Sdim*/ 36287518Sdim 37287518Sdim#include <experimental/__config> 38287518Sdim 39287518Sdim#if _LIBCPP_STD_VER > 11 40287518Sdim 41287518Sdim#include <system_error> 42287518Sdim 43287518Sdim#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 44287518Sdim#pragma GCC system_header 45287518Sdim#endif 46287518Sdim 47287518Sdim_LIBCPP_BEGIN_NAMESPACE_LFTS 48287518Sdim 49287518Sdim#ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES 50287518Sdim 51287518Sdimtemplate <class _Tp> _LIBCPP_CONSTEXPR bool is_error_code_enum_v 52287518Sdim = is_error_code_enum<_Tp>::value; 53287518Sdim 54287518Sdimtemplate <class _Tp> _LIBCPP_CONSTEXPR bool is_error_condition_enum_v 55287518Sdim = is_error_condition_enum<_Tp>::value; 56287518Sdim 57287518Sdim#endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */ 58287518Sdim 59287518Sdim_LIBCPP_END_NAMESPACE_LFTS 60287518Sdim 61287518Sdim#endif /* _LIBCPP_STD_VER > 11 */ 62287518Sdim 63287518Sdim#endif /* _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR */ 64