CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
is_move_constructible.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
12
13#include <type_traits>
14
15namespace CeresEngine::traits {
16
19 template<class T, class = void> struct is_move_constructible : std::false_type {};
20
21 template<class T>
24 // clang-format off
25 is_constructible_from_v<T, T> &&
26 is_convertible_to_v<T, T>
27 // clang-format on
28 >> : std::true_type {};
29
31 template<class T> bool constexpr is_move_constructible_v = is_move_constructible<T>::value;
32
34 template<class T>
36
37} // namespace CeresEngine::traits
Definition is_move_constructible.hpp:35
Definition Partitioner.hpp:146
bool constexpr is_move_constructible_v
A C++17 type trait equivalent to the C++20 move_constructible concept.
Definition is_move_constructible.hpp:31
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition Span.hpp:668
A C++17 type trait equivalent to the C++20 move_constructible concept.
Definition is_move_constructible.hpp:19