blob: b1d4c913fa5e240d23d7c2e4a9dc53d921e2ecb9 [file] [log] [blame]
Eric Fiselier7bffc892015-02-03 16:03:24 +00001// -*- C++ -*-
2//===-------------------------- system_error ------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR
12#define _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR
13
14/**
15 experimental/system_error synopsis
16
17// C++1y
18
19#include <system_error>
20
21namespace std {
22namespace experimental {
23inline namespace fundamentals_v1 {
24
25 // See C++14 19.5, System error support
26 template <class T> constexpr bool is_error_code_enum_v
27 = is_error_code_enum<T>::value;
28 template <class T> constexpr bool is_error_condition_enum_v
29 = is_error_condition_enum<T>::value;
30
31} // namespace fundamentals_v1
32} // namespace experimental
33} // namespace std
34
35*/
36
37#include <experimental/__config>
38
39#if _LIBCPP_STD_VER > 11
40
41#include <system_error>
42
43_LIBCPP_BEGIN_NAMESPACE_LFTS
44
45#if __has_feature(cxx_variable_templates)
46
47template <class _Tp> _LIBCPP_CONSTEXPR bool is_error_code_enum_v
48 = is_error_code_enum<_Tp>::value;
49
50template <class _Tp> _LIBCPP_CONSTEXPR bool is_error_condition_enum_v
51 = is_error_condition_enum<_Tp>::value;
52
53#endif /* __has_feature(cxx_variable_templates) */
54
55_LIBCPP_END_NAMESPACE_LFTS
56
57#endif /* _LIBCPP_STD_VER > 11 */
58
59#endif /* _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR */