Skip to content

class univector<T, Size> univector

template <typename T, size_t Size>
struct alignas(platform<>::maximum_vector_alignment) univector
    : std::array<T, Size>,
      univector_base<T, univector<T, Size>, is_vec_element<T>> { … }

Class that represent data in KFR. Many KFR functions can take this class as an argument. Can inherit from std::vector, std::array or keep only reference to data and its size.

univector is inherited from std::vector univector is inherited from std::array univector contains only reference to dataTo convert a plain pointer to univector, call make_univector:

double* buffer;
 size_t size;
 univector<double, 0> v = make_univector(buffer, size);
 // or pass result vector directly to a function:
 some_function(make_univector(buffer, size));

typedef size

using std::array<T, Size>::size

Defined at base/univector.hpp:303

typedef size_type

using size_type = size_t

Defined at base/univector.hpp:304

constructor univector<T, Tag>(univector<T, Tag> &)

univector(univector& v)

Defined at base/univector.hpp:306

constructor univector<T, Tag>(const univector<T, Tag> &)

univector(const univector& v)   = default

Defined at base/univector.hpp:308

constructor univector<T, Tag>(univector<T, Tag> &&)

univector(univector&&) noexcept = default

Defined at base/univector.hpp:309

function univector<T, Tag>(Input &&)

template <expression_argument Input>
univector(Input&& input)

Defined at base/univector.hpp:311

function univector<T, Tag>(const T &, const Args &...)

template <typename... Args>
constexpr univector(const T& x, const Args&... args) noexcept
    : std::array<T, Size> { … }

Defined at base/univector.hpp:316

constructor univector<T, Tag>()

constexpr univector() noexcept(noexcept(std::array<T, Size>())) = default

Defined at base/univector.hpp:321

constructor univector<T, Tag>(size_t, const T &)

constexpr univector(size_t, const T& value) { … }

Defined at base/univector.hpp:322

variable size_known

constexpr static bool size_known    = true

Defined at base/univector.hpp:323

variable static_size

constexpr static size_t static_size = Size

Defined at base/univector.hpp:324

variable is_array

constexpr static bool is_array      = true

Defined at base/univector.hpp:325

variable is_array_ref

constexpr static bool is_array_ref  = false

Defined at base/univector.hpp:326

variable is_vector

constexpr static bool is_vector     = false

Defined at base/univector.hpp:327

variable is_aligned

constexpr static bool is_aligned    = true

Defined at base/univector.hpp:328

typedef value_type

using value_type                    = T

Defined at base/univector.hpp:329

function get(size_t, value_type)

value_type get(size_t index, value_type fallback_value) const noexcept

Defined at base/univector.hpp:331

typedef operator=

using univector_base<T, univector, is_vec_element<T>>::operator=

Defined at base/univector.hpp:335

function resize(size_t)

void resize(size_t) noexcept

Defined at base/univector.hpp:337

Defined at base/univector.hpp:297