Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
SpecialCtors< Container, T > Struct Template Reference

Special constructors common to Aleph-w ( \(\aleph_\omega\)) containers. More...

#include <ah-dry.H>

Inheritance diagram for SpecialCtors< Container, T >:
[legend]

Public Member Functions

 SpecialCtors ()=default
 
 SpecialCtors (const SpecialCtors &)=default
 
 SpecialCtors (SpecialCtors &&) noexcept
 
SpecialCtors & operator= (const SpecialCtors &)=default
 
SpecialCtors & operator= (SpecialCtors &&) noexcept
 
 SpecialCtors (const Aleph::DynList< T > &l)
 Build the container by inserting all items of the list l.
 
template<class It >
 SpecialCtors (It b, It e)
 Construct the container from a range of iterators.
 
 SpecialCtors (std::initializer_list< T > l)
 Construct the container from an initializer list.
 

Detailed Description

template<class Container, typename T>
struct SpecialCtors< Container, T >

Special constructors common to Aleph-w ( \(\aleph_\omega\)) containers.

Basically, the constructors of this class append a sequence of items.

Warning
Note that these constructors require that the class is correctly initialized, which not only very often is not the case, but it could be impossible in most cases. The most part of situations, the derived class must be initialized before to start to append new items. But this is not the case during this construction. So, don't use this class unless you are absolutely sure that the derived class has been initialized.

Definition at line 599 of file ah-dry.H.

Constructor & Destructor Documentation

◆ SpecialCtors() [1/6]

template<class Container , typename T >
SpecialCtors< Container, T >::SpecialCtors ( )
default

◆ SpecialCtors() [2/6]

template<class Container , typename T >
SpecialCtors< Container, T >::SpecialCtors ( const SpecialCtors< Container, T > &  )
default

◆ SpecialCtors() [3/6]

template<class Container , typename T >
SpecialCtors< Container, T >::SpecialCtors ( SpecialCtors< Container, T > &&  )
inlinenoexcept

Definition at line 605 of file ah-dry.H.

◆ SpecialCtors() [4/6]

template<class Container , typename T >
SpecialCtors< Container, T >::SpecialCtors ( const Aleph::DynList< T > &  l)
inline

Build the container by inserting all items of the list l.

Parameters
[in]llist of items to insert

Definition at line 618 of file ah-dry.H.

References FunctionalMethods< Container, T >::for_each(), and l.

◆ SpecialCtors() [5/6]

template<class Container , typename T >
template<class It >
SpecialCtors< Container, T >::SpecialCtors ( It  b,
It  e 
)
inline

Construct the container from a range of iterators.

Parameters
[in]bbegin iterator
[in]eend iterator

Definition at line 632 of file ah-dry.H.

◆ SpecialCtors() [6/6]

template<class Container , typename T >
SpecialCtors< Container, T >::SpecialCtors ( std::initializer_list< T >  l)
inline

Construct the container from an initializer list.

Parameters
[in]linitializer list of items

Definition at line 642 of file ah-dry.H.

References l.

Member Function Documentation

◆ operator=() [1/2]

template<class Container , typename T >
SpecialCtors & SpecialCtors< Container, T >::operator= ( const SpecialCtors< Container, T > &  )
default

◆ operator=() [2/2]

template<class Container , typename T >
SpecialCtors & SpecialCtors< Container, T >::operator= ( SpecialCtors< Container, T > &&  )
inlinenoexcept

Definition at line 609 of file ah-dry.H.


The documentation for this struct was generated from the following file: