CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
is_constructible_from.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include <type_traits>
11
12namespace CeresEngine::traits {
13
16 template<class T, class... Args> struct is_constructible_from : std::conjunction<std::is_destructible<T>, std::is_constructible<T, Args...>> {};
17
19 template<class T, class... Args> bool constexpr is_constructible_from_v = is_constructible_from<T>::value;
20
22 template<class T, class... Args>
24
25} // namespace CeresEngine::traits
Definition is_constructible_from.hpp:23
Definition Partitioner.hpp:146
bool constexpr is_constructible_from_v
A C++17 type trait equivalent to the C++20 constructible_from concept.
Definition is_constructible_from.hpp:19
A C++17 type trait equivalent to the C++20 constructible_from concept.
Definition is_constructible_from.hpp:16