CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
has_value_type.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 = void> struct has_value_type : std::false_type {};
17
18 template<class T> struct has_value_type<T, std::void_t<typename T::value_type>> : std::true_type {};
19
21 template<class T> bool constexpr has_value_type_v = has_value_type<T>::value;
22
23} // namespace CeresEngine::traits
Definition Partitioner.hpp:146
bool constexpr has_value_type_v
A C++17 type trait equivalent to the C++20 has-member-value-type concept.
Definition has_value_type.hpp:21
Definition Span.hpp:668
A C++17 type trait equivalent to the C++20 has-member-value-type concept.
Definition has_value_type.hpp:16