|
tenno 0.1.0
|
Data Structures | |
| struct | allocator |
| class | array |
| A fixed-size array. More... | |
| class | atomic |
| The atomic class template provides operations on atomic types. More... | |
| class | atomic< char > |
| class | atomic< int > |
| class | atomic< long > |
| class | atomic< U * > |
| struct | default_delete |
| class | expected |
| An expected value. More... | |
| class | jthread |
| The jthread class is a wrapper around std::thread that automatically rejoins the thread on destruction. More... | |
| class | lock_guard |
| A simple lock guard implementation. More... | |
| class | mutex |
| A simple mutex implementation. More... | |
| class | optional |
| An optional value. More... | |
| class | range |
| A range of elements. More... | |
| class | reference_wrapper |
| A reference wrapper class. More... | |
| class | shared_ptr |
| A shared pointer. More... | |
| class | unexpected |
| An unexpected value. More... | |
| class | unique_ptr |
| A shared pointer. More... | |
| class | vector |
| class | weak_ptr |
| A weak pointer. More... | |
Typedefs | |
| typedef size_t | size |
| using | nullptr_t = decltype(nullptr) |
Enumerations | |
| enum class | error { out_of_range = 0 , empty , not_initialized , _error_max } |
Functions | |
| template<typename InputIt , typename OutputIt > | |
| constexpr OutputIt | copy (InputIt first, InputIt last, OutputIt d_first) |
| Copies the elements in the range [first, last) to the range beginning at d_first. | |
| template<class InputIt , class UnaryFunc > | |
| constexpr UnaryFunc | for_each (InputIt first, InputIt last, UnaryFunc f) |
| Applies the given function f to the result of dereferencing every element in the range [first, last). | |
| template<class InputIt , class T > | |
| constexpr T | accumulate (InputIt first, InputIt last, T init) noexcept |
| Applies the given function f to the result of dereferencing every element in the range [first, last) and returns the result. | |
| template<class T > | |
| void | swap (T &a, T &b) noexcept |
| Exchanges the values of a and b. | |
| template<class T , class... Args> | |
| std::enable_if<!std::is_array< T >::value, shared_ptr< T > >::type | make_shared (Args &&... args) |
| Create a shared pointer with the given arguments. | |
| template<class T > | |
| std::enable_if< std::is_array< T >::value, shared_ptr< T > >::type | make_shared (tenno::size n) |
| template<class T > | |
| shared_ptr< T > | make_shared () |
| Default initialize a shared pointer. | |
| template<class T , class Alloc , class... Args> | |
| tenno::shared_ptr< T > | allocate_shared (Alloc &alloc, Args &&...args) noexcept |
| Create a shared pointer with the given arguments and allocator. | |
| template<class T , class Alloc > | |
| shared_ptr< T > | allocate_shared (Alloc &alloc) noexcept |
| Default initialize a shared pointer with the given allocator. | |
| template<class T , class... Args> | |
| constexpr unique_ptr< T > | make_unique (Args &&...args) |
| Create a unique pointer with the given arguments. | |
| constexpr unsigned int | lcg (const unsigned int seed) |
| template<const unsigned int it> | |
| constexpr unsigned int | gen (const unsigned int N) |
| template<> | |
| constexpr unsigned int | gen< 0 > (const unsigned int N) |
| template<const unsigned int it> | |
| constexpr float | uniform_real_distribution (const unsigned int seed, const float min=0, const float max=1) |
| template<const tenno::size N, const tenno::size it> | |
| constexpr tenno::array< float, N > | random_array_impl (const int seed, const float min, const float max, const tenno::array< float, N > vec) |
| template<const tenno::size N> | |
| constexpr tenno::array< float, N > | random_array (const int seed, const float min=0, const float max=1) |
| template<typename T > | |
| constexpr std::remove_reference_t< T > && | move (T &&t) noexcept |
| Move a value from one location to another. | |
| using tenno::nullptr_t = decltype(nullptr) |
| typedef size_t tenno::size |
|
strong |
|
constexprnoexcept |
Applies the given function f to the result of dereferencing every element in the range [first, last) and returns the result.
| InputIt | The type of the iterator to the first element in the range to apply the function to. |
| UnaryFunc | The type of the function to apply to the elements in the range. |
| T | The type of the result of the function. |
| first | The iterator to the first element in the range to apply the function to. |
| last | The iterator to the element after the last element in the range to apply the function to. |
| f | The function to apply to the elements in the range. |
| init | The initial value of the result. |
Definition at line 83 of file algorithm.hpp.
|
noexcept |
Default initialize a shared pointer with the given allocator.
| T | The type of the object to create |
| Alloc | The type of the allocator to use |
| alloc | The allocator to use |
Definition at line 1108 of file memory.hpp.
|
noexcept |
Create a shared pointer with the given arguments and allocator.
| T | The type of the object to create |
| Alloc | The type of the allocator to use |
| Args | The type of the arguments to pass to the constructor |
| alloc | The allocator to use |
| args | The arguments to pass to the constructor |
Definition at line 1091 of file memory.hpp.
|
constexpr |
Copies the elements in the range [first, last) to the range beginning at d_first.
| InputIt | The type of the iterator to the first element in the range to copy. |
| OutputIt | The type of the iterator to the first element in the range to copy to. |
| first | The iterator to the first element in the range to copy. |
| last | The iterator to the element after the last element in the range to copy. |
| d_first | The iterator to the first element in the range to copy to. |
Definition at line 28 of file algorithm.hpp.
|
constexpr |
Applies the given function f to the result of dereferencing every element in the range [first, last).
| InputIt | The type of the iterator to the first element in the range to apply the function to. |
| UnaryFunc | The type of the function to apply to the elements in the range. |
| first | The iterator to the first element in the range to apply the function to. |
| last | The iterator to the element after the last element in the range to apply the function to. |
| f | The function to apply to the elements in the range. |
Definition at line 56 of file algorithm.hpp.
|
constexpr |
Definition at line 23 of file random.hpp.
|
constexpr |
Definition at line 28 of file random.hpp.
|
inlineconstexpr |
Definition at line 14 of file random.hpp.
|
noexcept |
Default initialize a shared pointer.
| T | The type of the object to create |
Definition at line 1061 of file memory.hpp.
|
noexcept |
Create a shared pointer with the given arguments.
| T | The type of the object to create |
| Args | The type of the arguments to pass to the constructor |
| args | The arguments to pass to the constructor |
Definition at line 1017 of file memory.hpp.
|
noexcept |
Definition at line 1037 of file memory.hpp.
|
constexpr |
Create a unique pointer with the given arguments.
| T | The type of the object to create |
| Args | The type of the arguments to pass to the constructor |
| args | The arguments to pass to the constructor |
Definition at line 1149 of file memory.hpp.
|
constexprnoexcept |
Move a value from one location to another.
| T | The type of the value to move. |
| t | The value to move. |
Definition at line 21 of file utility.hpp.
|
constexpr |
Definition at line 65 of file random.hpp.
|
constexpr |
Definition at line 46 of file random.hpp.
|
noexcept |
Exchanges the values of a and b.
| T | The type of the values to swap. |
| a | The first value to swap. |
| b | The second value to swap. |
Definition at line 99 of file algorithm.hpp.
|
constexpr |
Definition at line 34 of file random.hpp.