codex
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <algorithm>
#include <iterator>
#include <random>
Include dependency graph for utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

constexpr auto less_than (auto y)
 
template<std::random_access_iterator I, std::sentinel_for< I > S>
constexpr bool check_range (I b, S e)
 
template<std::input_iterator I, std::sentinel_for< I > S>
constexpr bool contains (I b, S e, I i)
 
template<std::forward_iterator I, std::sentinel_for< I > S>
rand_it (I b, S e)
 
template<std::input_iterator I, std::sentinel_for< I > S>
constexpr bool is_min_element (I b, S e, const auto &x)
 
template<std::forward_iterator I, std::sentinel_for< I > S>
constexpr I min_element (I b, S e)
 
template<std::forward_iterator I, std::sentinel_for< I > S>
sort_element (I b, I i, S e)
 

Variables

static std::random_device rnd
 

Function Documentation

◆ check_range()

template<std::random_access_iterator I, std::sentinel_for< I > S>
bool check_range ( I b,
S e )
constexpr
Here is the caller graph for this function:

◆ contains()

template<std::input_iterator I, std::sentinel_for< I > S>
bool contains ( I b,
S e,
I i )
constexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_min_element()

template<std::input_iterator I, std::sentinel_for< I > S>
bool is_min_element ( I b,
S e,
const auto & x )
constexpr
Here is the caller graph for this function:

◆ less_than()

auto less_than ( auto y)
constexpr
Here is the caller graph for this function:

◆ min_element()

template<std::forward_iterator I, std::sentinel_for< I > S>
I min_element ( I b,
S e )
constexpr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand_it()

template<std::forward_iterator I, std::sentinel_for< I > S>
I rand_it ( I b,
S e )
Here is the caller graph for this function:

◆ sort_element()

template<std::forward_iterator I, std::sentinel_for< I > S>
I sort_element ( I b,
I i,
S e )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ rnd

std::random_device rnd
static