#include <gtopt/position_vector.hpp>
template<typename IndexT, typename T>
PositionVector class
Public types
- using index_type = IndexT
Constructors, destructors, conversion operators
- PositionVector() defaulted constexpr noexcept
- PositionVector(base_t v) constexpr noexcept
Public functions
- auto at(IndexT pos) -> base_t::reference
- auto at(IndexT pos) const -> base_t::const_reference
-
template<StrongIndexLike Other>void at(Other) deleted
-
template<StrongIndexLike Other>void at(Other) const deleted
- auto at(std::size_t pos) -> base_t::reference
- auto at(std::size_t pos) const -> base_t::const_reference
- auto operator[](IndexT pos) const -> base_t::const_reference noexcept
- auto operator[](IndexT pos) -> base_t::reference noexcept
-
template<StrongIndexLike Other>void operator[](Other) deleted
-
template<StrongIndexLike Other>void operator[](Other) const deleted
- auto operator[](std::size_t pos) const -> base_t::const_reference noexcept
- auto operator[](std::size_t pos) -> base_t::reference noexcept
Function documentation
template<typename IndexT, typename T>
template<StrongIndexLike Other>
void gtopt:: PositionVector<IndexT, T>:: operator[](Other) deleted
A strong index of ANOTHER kind (e.g. a phase-local stage position into the global stage array) is a type error, not a conversion.