OGS
BoostMP11Utils.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <boost/mp11.hpp>
7
8namespace boost::mp11
9{
10// Alias to be used together with static_assert to improve possible compile
11// error messages.
12template <typename List, typename Elem>
13constexpr bool mp_contains_v = mp_contains<List, Elem>::value;
14
15// Alias to be used together with static_assert to improve possible compile
16// error messages
17template <typename Set>
18constexpr bool mp_is_list_v = mp_is_list<Set>::value;
19
20// Alias to be used together with static_assert to improve possible compile
21// error messages
22template <typename Set>
23constexpr bool mp_is_set_v = mp_is_set<Set>::value;
24} // namespace boost::mp11
constexpr bool mp_is_set_v
constexpr bool mp_is_list_v
constexpr bool mp_contains_v