Debian Codegraph @

Utilities/std/cm/utility

raw
1 // -*-c++-*-
2 // vim: set ft=cpp:
3
4 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
5 file LICENSE.rst or https://cmake.org/licensing for details. */
6 #pragma once
7
8 #if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
9 # define CMake_HAVE_CXX_IN_PLACE
10 #endif
11
12 #include <utility> // IWYU pragma: export
13
14 namespace cm {
15
16 #if defined(CMake_HAVE_CXX_IN_PLACE)
17
18 using std::in_place_t;
19 using std::in_place;
20
21 #else
22
23 struct in_place_t
24 {
25 explicit in_place_t() = default;
26 };
27
28 constexpr in_place_t in_place{};
29
30 #endif
31 }