HIBF 1.0.0-rc.1
All Classes Namespaces Files Functions Variables Typedefs Friends Macros Modules Pages Concepts
iota_vector.hpp File Reference

Provides seqan::hibf::iota_vector. More...

#include <cassert>
#include <concepts>
#include <cstddef>
#include <limits>
#include <numeric>
#include <vector>
#include <hibf/platform.hpp>
+ Include dependency graph for iota_vector.hpp:

Go to the source code of this file.

Functions

template<std::unsigned_integral value_t = size_t>
constexpr std::vector< value_t > seqan::hibf::iota_vector (size_t const size)
 Creates a vector of size size with values from 0 to size - 1.
 

Detailed Description

Provides seqan::hibf::iota_vector.

Author
Enrico Seiler <enrico.seiler AT fu-berlin.de>

Function Documentation

◆ iota_vector()

template<std::unsigned_integral value_t = size_t>
constexpr std::vector< value_t > seqan::hibf::iota_vector ( size_t const size)
constexpr

Creates a vector of size size with values from 0 to size - 1.

Template Parameters
value_tThe value type of the vector. Defaults to size_t.
Parameters
[in]sizeThe size of the vector.
Returns
A vector of size size with values from 0 to size - 1.