CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
is_semiregular.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_semiregular : std::false_type {};
20
21 template<class T>
22 struct is_semiregular<T,
24 // clang-format off
25 is_copyable_v<T> &&
26 is_default_initializable_v<T>
27 // clang-format on
28 >> : std::true_type {};
29
31 template<class T> bool constexpr is_semiregular_v = is_semiregular<T>::value;
32
34 template<class T>
36
37} // namespace CeresEngine::traits
Definition is_semiregular.hpp:35
Definition Partitioner.hpp:146
bool constexpr is_semiregular_v
A C++17 type trait equivalent to the C++20 semiregular concept.
Definition is_semiregular.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 semiregular concept.
Definition is_semiregular.hpp:19