StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::HasPushFront Concept Reference

StormByte::Type::Container that accepts push_front of a value_type. More...

#include <StormByte/type_traits/containers.hxx>

Concept definition

template<typename C>
(
requires(std::remove_cvref_t<C>& c,
typename std::remove_cvref_t<C>::value_type const& v) {
c.push_front(v);
} ||
requires(std::remove_cvref_t<C>& c,
typename std::remove_cvref_t<C>::value_type&& v) {
c.push_front(std::move(v));
}
)
Has begin(), end() and value_type, and is not a StormByte::Type::String.
Definition containers.hxx:167
StormByte::Type::Container that accepts push_front of a value_type.
Definition containers.hxx:287

Detailed Description

StormByte::Type::Container that accepts push_front of a value_type.

Template Parameters
CContainer type (cv/ref ignored).

Same const-ref / rvalue split as StormByte::Type::HasPushBack. Typical matches: std::deque, std::list. std::vector does not match.