CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
has_iterator_traits_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 <iterator>
11#include <type_traits>
12
13namespace CeresEngine::traits {
14
17 template<class T, class = void> struct has_iterator_traits_value_type : std::false_type {};
18
19 template<class T> struct has_iterator_traits_value_type<T, std::void_t<typename std::iterator_traits<T>::value_type>> : std::true_type {};
20
23
24} // namespace CeresEngine::traits
Definition Partitioner.hpp:146
bool constexpr has_iterator_traits_value_type_v
A C++17 type trait equivalent to the C++20 "has-iterator-traits-value-type" concept.
Definition has_iterator_traits_value_type.hpp:22
Definition Span.hpp:668
A C++17 type trait equivalent to the C++20 "has-iterator-traits-value-type" concept.
Definition has_iterator_traits_value_type.hpp:17