cptr::detail::basic_list::basic_list

Constructors

Synopses

Declared in <cptr/list.hpp>

Allocates the sentinel, so it can throw std::bad_alloc.

basic_list();
» more...

Copy constructor

basic_list(basic_list const& other);
» more...

Takes the other list's nodes and sentinel; the other list is left empty and allocates a new sentinel when it is next used.

basic_list(basic_list&& other) noexcept;
» more...

Construct from size_type

explicit
basic_list(size_type n);
» more...

Construct from initializer_list

basic_list(std::initializer_list<T> values);
» more...
basic_list(
    size_type n,
    T const& value);
» more...
template<std::input_iterator It>
basic_list(
    It first,
    It last);
» more...