tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
static_vector.hpp File Reference

Go to the source code of this file.

Classes

struct  static_vector< T, Capacity >
 Dynamically-resizable fixed-capacity vector. More...
 

Namespaces

namespace  etl
 

Functions

template<typename T, size_t Capacity, typename U>
constexpr auto erase (static_vector< T, Capacity > &c, U const &value) -> typename static_vector< T, Capacity >::size_type
 
template<typename T, size_t Capacity, typename Predicate>
constexpr auto erase_if (static_vector< T, Capacity > &c, Predicate pred) -> typename static_vector< T, Capacity >::size_type
 Erases all elements that satisfy the predicate pred from the container.
 
template<typename T, size_t Capacity>
constexpr auto operator!= (static_vector< T, Capacity > const &lhs, static_vector< T, Capacity > const &rhs) noexcept -> bool
 
template<typename T, size_t Capacity>
constexpr auto operator< (static_vector< T, Capacity > const &lhs, static_vector< T, Capacity > const &rhs) noexcept -> bool
 Compares the contents of two vectors.
 
template<typename T, size_t Capacity>
constexpr auto operator<= (static_vector< T, Capacity > const &lhs, static_vector< T, Capacity > const &rhs) noexcept -> bool
 
template<typename T, size_t Capacity>
constexpr auto operator== (static_vector< T, Capacity > const &lhs, static_vector< T, Capacity > const &rhs) noexcept -> bool
 Compares the contents of two vectors.
 
template<typename T, size_t Capacity>
constexpr auto operator> (static_vector< T, Capacity > const &lhs, static_vector< T, Capacity > const &rhs) noexcept -> bool
 
template<typename T, size_t Capacity>
constexpr auto operator>= (static_vector< T, Capacity > const &lhs, static_vector< T, Capacity > const &rhs) noexcept -> bool
 
template<typename T, size_t Capacity>
constexpr auto swap (static_vector< T, Capacity > &lhs, static_vector< T, Capacity > &rhs) noexcept -> void
 Specializes the swap algorithm for static_vector. Swaps the contents of lhs and rhs.