1*0a6a1f1dSLionel Sambuc// -*- C++ -*- 2*0a6a1f1dSLionel Sambuc//===-------------------------- system_error ------------------------------===// 3*0a6a1f1dSLionel Sambuc// 4*0a6a1f1dSLionel Sambuc// The LLVM Compiler Infrastructure 5*0a6a1f1dSLionel Sambuc// 6*0a6a1f1dSLionel Sambuc// This file is dual licensed under the MIT and the University of Illinois Open 7*0a6a1f1dSLionel Sambuc// Source Licenses. See LICENSE.TXT for details. 8*0a6a1f1dSLionel Sambuc// 9*0a6a1f1dSLionel Sambuc//===----------------------------------------------------------------------===// 10*0a6a1f1dSLionel Sambuc 11*0a6a1f1dSLionel Sambuc#ifndef _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR 12*0a6a1f1dSLionel Sambuc#define _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR 13*0a6a1f1dSLionel Sambuc 14*0a6a1f1dSLionel Sambuc/** 15*0a6a1f1dSLionel Sambuc experimental/system_error synopsis 16*0a6a1f1dSLionel Sambuc 17*0a6a1f1dSLionel Sambuc// C++1y 18*0a6a1f1dSLionel Sambuc 19*0a6a1f1dSLionel Sambuc#include <system_error> 20*0a6a1f1dSLionel Sambuc 21*0a6a1f1dSLionel Sambucnamespace std { 22*0a6a1f1dSLionel Sambucnamespace experimental { 23*0a6a1f1dSLionel Sambucinline namespace fundamentals_v1 { 24*0a6a1f1dSLionel Sambuc 25*0a6a1f1dSLionel Sambuc // See C++14 19.5, System error support 26*0a6a1f1dSLionel Sambuc template <class T> constexpr bool is_error_code_enum_v 27*0a6a1f1dSLionel Sambuc = is_error_code_enum<T>::value; 28*0a6a1f1dSLionel Sambuc template <class T> constexpr bool is_error_condition_enum_v 29*0a6a1f1dSLionel Sambuc = is_error_condition_enum<T>::value; 30*0a6a1f1dSLionel Sambuc 31*0a6a1f1dSLionel Sambuc} // namespace fundamentals_v1 32*0a6a1f1dSLionel Sambuc} // namespace experimental 33*0a6a1f1dSLionel Sambuc} // namespace std 34*0a6a1f1dSLionel Sambuc 35*0a6a1f1dSLionel Sambuc*/ 36*0a6a1f1dSLionel Sambuc 37*0a6a1f1dSLionel Sambuc#include <experimental/__config> 38*0a6a1f1dSLionel Sambuc 39*0a6a1f1dSLionel Sambuc#if _LIBCPP_STD_VER > 11 40*0a6a1f1dSLionel Sambuc 41*0a6a1f1dSLionel Sambuc#include <system_error> 42*0a6a1f1dSLionel Sambuc 43*0a6a1f1dSLionel Sambuc#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 44*0a6a1f1dSLionel Sambuc#pragma GCC system_header 45*0a6a1f1dSLionel Sambuc#endif 46*0a6a1f1dSLionel Sambuc 47*0a6a1f1dSLionel Sambuc_LIBCPP_BEGIN_NAMESPACE_LFTS 48*0a6a1f1dSLionel Sambuc 49*0a6a1f1dSLionel Sambuc#ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES 50*0a6a1f1dSLionel Sambuc 51*0a6a1f1dSLionel Sambuctemplate <class _Tp> _LIBCPP_CONSTEXPR bool is_error_code_enum_v 52*0a6a1f1dSLionel Sambuc = is_error_code_enum<_Tp>::value; 53*0a6a1f1dSLionel Sambuc 54*0a6a1f1dSLionel Sambuctemplate <class _Tp> _LIBCPP_CONSTEXPR bool is_error_condition_enum_v 55*0a6a1f1dSLionel Sambuc = is_error_condition_enum<_Tp>::value; 56*0a6a1f1dSLionel Sambuc 57*0a6a1f1dSLionel Sambuc#endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */ 58*0a6a1f1dSLionel Sambuc 59*0a6a1f1dSLionel Sambuc_LIBCPP_END_NAMESPACE_LFTS 60*0a6a1f1dSLionel Sambuc 61*0a6a1f1dSLionel Sambuc#endif /* _LIBCPP_STD_VER > 11 */ 62*0a6a1f1dSLionel Sambuc 63*0a6a1f1dSLionel Sambuc#endif /* _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR */ 64