Array Utility functions.
More...
Go to the source code of this file.
|
template<std::size_t N, typename T > |
constexpr std::array< T, N > | NAV::create_array (const T &value) |
| Create an array with the value assigned to all elements in the container.
|
|
template<typename T , std::size_t... Is> |
constexpr std::array< T, sizeof...(Is)> | NAV::detail::create_array (const T &value, std::index_sequence< Is... >) |
| Create an array with the value assigned to all elements in the container.
|
|
template<size_t N, typename Scalar > |
constexpr std::array< Scalar, N > | NAV::genRangeArray (Scalar start, Scalar stepSize, Scalar end) |
| Returns a container filled with the given range.
|
|
◆ create_array() [1/2]
template<std::size_t N, typename T >
constexpr std::array< T, N > NAV::create_array |
( |
const T & | value | ) |
|
|
constexpr |
◆ create_array() [2/2]
template<typename T , std::size_t... Is>
constexpr std::array< T, sizeof...(Is)> NAV::detail::create_array |
( |
const T & | value, |
|
|
std::index_sequence< Is... > | ) |
|
constexpr |
Create an array with the value assigned to all elements in the container.
- Parameters
-
[in] | value | Value to fill with |
◆ genRangeArray()
template<size_t N, typename Scalar >
constexpr std::array< Scalar, N > NAV::genRangeArray |
( |
Scalar | start, |
|
|
Scalar | stepSize, |
|
|
Scalar | end ) |
|
constexpr |
Returns a container filled with the given range.
- Parameters
-
start | Inclusive start value of the range |
stepSize | Step size of the range |
end | Exclusive end value of the range |