blob: 2ec238544615e3b29c6690ac48069e560e095472 [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
Eric Fiseliercc2e1ab2015-02-10 17:32:49 +000043#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
44#pragma GCC system_header
45#endif
46
Eric Fiselier7bffc892015-02-03 16:03:24 +000047_LIBCPP_BEGIN_NAMESPACE_LFTS
48
Marshall Clow2d832d22015-03-17 15:30:22 +000049#ifndef _LIBCPP_HAS_NO_VARIABLE_TEMPLATES
Eric Fiselier7bffc892015-02-03 16:03:24 +000050
51template <class _Tp> _LIBCPP_CONSTEXPR bool is_error_code_enum_v
52 = is_error_code_enum<_Tp>::value;
53
54template <class _Tp> _LIBCPP_CONSTEXPR bool is_error_condition_enum_v
55 = is_error_condition_enum<_Tp>::value;
56
Marshall Clow2d832d22015-03-17 15:30:22 +000057#endif /* _LIBCPP_HAS_NO_VARIABLE_TEMPLATES */
Eric Fiselier7bffc892015-02-03 16:03:24 +000058
59_LIBCPP_END_NAMESPACE_LFTS
60
61#endif /* _LIBCPP_STD_VER > 11 */
62
Eric Fiselier861d0ea2015-02-10 17:20:18 +000063#endif /* _LIBCPP_EXPERIMENTAL_SYSTEM_ERROR */