StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::HasPushBack Concept Reference

Concept that checks whether a container supports push_back. More...

#include <type_traits.hxx>

Concept definition

template<typename C>
concept StormByte::Type::HasPushBack = Container<C> && requires(C& c, typename C::value_type const& v) {
c.push_back(v);
}
Concept to check if a type is a container (excluding strings).
Definition type_traits.hxx:96
Concept that checks whether a container supports push_back.
Definition type_traits.hxx:105

Detailed Description

Concept that checks whether a container supports push_back.

Satisfied when the expression c.push_back(v) is valid where v is convertible to the container's value_type.