Defines the range util template and various functions to deal with numerical range. More...
#include <config.h>
#include <utility>
#include <iterator>
Go to the source code of this file.
Classes | |
class | util::range< Iterator > |
Class representing a range of values from two iterators. More... | |
Namespaces | |
namespace | util |
Various utility classes for generic programming. | |
Functions | |
template<typename Iterator > | |
range< Iterator > | util::make_range (const std::pair< Iterator, Iterator > &p) |
Function to create a range from a pair of iterators. | |
template<typename Iterator > | |
range< Iterator > | util::make_range (const Iterator &first, const Iterator &last) |
Function to create a range from two iterators. | |
template<typename T > | |
bool | util::range_c (const T &min, const T &max, const T &val) |
Check if a value is in a C-style range (closed on lower bound and open on the upper). | |
template<typename T > | |
bool | util::range_closed (const T &min, const T &max, const T &val) |
Check if a value is in an closed range. | |
template<typename T > | |
bool | util::range_open (const T &min, const T &max, const T &val) |
Check if a value is in an open range. |
Defines the range util template and various functions to deal with numerical range.
Definition in file range.h.