CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
iterator.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
14
15#include <iterator>
16#include <type_traits>
17
18namespace CeresEngine::traits {
19
22 template<class T, class = void> struct iterator {};
23
24 template<class T> struct iterator<T, std::void_t<decltype(begin(std::declval<T&>()))>> { using type = decltype(begin(std::declval<T&>())); };
25
27 template<class T> using iterator_t = typename iterator<T>::type;
28
29} // namespace CeresEngine::traits
Definition Partitioner.hpp:146
typename iterator< T >::type iterator_t
A C++17 type trait equivalent to the C++20 iterator_t concept.
Definition iterator.hpp:27
Definition Span.hpp:668
A C++17 type trait equivalent to the C++20 iterator_t concept.
Definition iterator.hpp:22