Utility function to enable range-for on different type iterators. More...
#include "boost/variant.hpp"
#include <stdexcept>
#include <utility>
#include <iterator>
#include <type_traits>
Go to the source code of this file.
Namespaces | |
util | |
Namespace for general, non-LArSoft-specific utilities. | |
util::details | |
Functions | |
template<typename Range > | |
auto | util::wrapRangeFor (Range &&range) -> decltype(auto) |
Wraps an object for use in a range-for loop. More... | |
template<typename Range > | |
auto | util::operator| (Range &&range, RangeForWrapperTag) -> decltype(auto) |
Transforms a range so that it can be used in a range-for loop. More... | |
Variables | |
constexpr RangeForWrapperTag | util::range_for |
template<typename T > | |
constexpr bool | util::details::is_type_v = is_type<T>() |
Utility function to enable range-for on different type iterators.
This header will be needed likely until C++20, since range library is not providing some definitions that are needed for range for loops.
Definition in file RangeForWrapper.h.