HIBF
1.0.0-rc.1
Toggle main menu visibility
Main Page
Cookbook
About
Changelog
Copyright
Code of Conduct
Contributing
API Reference
API Reference (details)
Concept List
Class List
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
~
Variables
a
b
d
e
f
h
i
k
m
n
o
p
r
s
t
u
v
Typedefs
Related Symbols
File List
File List
File Members
All
Macros
▼
HIBF
Cookbook
►
About
►
API Reference
▼
API Reference (details)
►
Concept List
►
Class List
▼
File List
▼
File List
▼
hibf
►
build
►
cereal
►
layout
▼
misc
bit_vector.hpp
counting_vector.hpp
divide_and_ceil.hpp
insert_iterator.hpp
►
iota_vector.hpp
next_multiple_of_64.hpp
print.hpp
subtract_empty_bins.hpp
timer.hpp
►
unreachable.hpp
►
sketch
all.hpp
config.hpp
hierarchical_interleaved_bloom_filter.hpp
►
interleaved_bloom_filter.hpp
►
platform.hpp
►
version.hpp
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
iota_vector.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2025, Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2025, Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
10
#pragma once
11
12
#include <
cassert
>
// for assert
13
#include <
concepts
>
// for unsigned_integral
14
#include <
cstddef
>
// for size_t
15
#include <
limits
>
// for numeric_limits
16
#include <
numeric
>
// for iota
17
#include <
vector
>
// for vector
18
19
#include <
hibf/platform.hpp
>
// for HIBF_CONSTEXPR_VECTOR
20
21
namespace
seqan::hibf
22
{
23
29
template
<std::
unsigned
_
int
egral value_t =
size_t
>
30
HIBF_CONSTEXPR_VECTOR
std::vector<value_t>
iota_vector
(
size_t
const
size)
31
{
32
assert(size <=
std::numeric_limits<value_t>::max
());
33
std::vector<value_t>
result(size);
34
std::iota
(result.
begin
(), result.
end
(), value_t{});
35
return
result;
36
}
30
HIBF_CONSTEXPR_VECTOR
std::vector<value_t>
iota_vector
(
size_t
const
size) {
…
}
37
38
}
// namespace seqan::hibf
std::vector::begin
T begin(T... args)
cassert
concepts
cstddef
std::vector::end
T end(T... args)
seqan::hibf::iota_vector
constexpr std::vector< value_t > iota_vector(size_t const size)
Creates a vector of size size with values from 0 to size - 1.
Definition
iota_vector.hpp:30
std::iota
T iota(T... args)
limits
numeric
std::numeric_limits
platform.hpp
Provides platform and dependency checks.
HIBF_CONSTEXPR_VECTOR
#define HIBF_CONSTEXPR_VECTOR
std::vector constexpr support.
Definition
platform.hpp:120
vector
hibf
misc
iota_vector.hpp
Generated on Mon Mar 17 2025 14:41:03 for HIBF by
1.10.0