Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::string Class Reference

#include <string.hpp>

Inheritance diagram for ext::string:
[legend]
Collaboration diagram for ext::string:
[legend]

Public Member Functions

 string ()=default
 
 string (const string &other)=default
 
 string (string &&other)=default
 
stringoperator= (string &&other)=default
 
stringoperator= (const string &other)=default
 
 string (const std::string &other) noexcept
 Constructor from standard string. More...
 
 string (std::string &&other) noexcept
 Constructor from standard string. More...
 
stringoperator= (std::string &&other) noexcept
 Assignment from standard string. More...
 
stringoperator= (const std::string &other) noexcept
 Assignment from standard string. More...
 

Detailed Description

Class extending the set class from the standard library. Original reason is to allow printing of the container with overloaded operator <<.

The class mimics the behavior of the set from the standatd library.

Constructor & Destructor Documentation

◆ string() [1/5]

ext::string::string ( )
default

Default constructor needed by g++ since it is not inherited

◆ string() [2/5]

ext::string::string ( const string other)
default

Copy constructor needed by g++ since it is not inherited

◆ string() [3/5]

ext::string::string ( string &&  other)
default

Move constructor needed by g++ since it is not inherited

◆ string() [4/5]

ext::string::string ( const std::string &  other)
inlineexplicitnoexcept

Constructor from standard string.

Parameters
thestandard string

◆ string() [5/5]

ext::string::string ( std::string &&  other)
inlineexplicitnoexcept

Constructor from standard string.

Parameters
thestandard string

Member Function Documentation

◆ operator=() [1/4]

string & ext::string::operator= ( const std::string &  other)
inlinenoexcept

Assignment from standard string.

Parameters
thestandard string

◆ operator=() [2/4]

string & ext::string::operator= ( const string other)
default

Move operator = needed by g++ since it is not inherited

◆ operator=() [3/4]

string & ext::string::operator= ( std::string &&  other)
inlinenoexcept

Assignment from standard string.

Parameters
thestandard string

◆ operator=() [4/4]

string & ext::string::operator= ( string &&  other)
default

Copy operator = needed by g++ since it is not inherited


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