ar-cpp
|
A vector-like container storing files. More...
#include <file.h>
Public Types | |
using | size_type = Container::size_type |
using | value_type = Container::value_type |
using | reference = Container::reference |
using | iterator = Container::iterator |
Public Member Functions | |
Files () | |
Constructs an empty container (without files). More... | |
Files (Files &&other) | |
~Files () | |
File Access | |
reference | front () |
Returns a reference to the first file in the container. More... | |
reference | back () |
Returns a reference to the last file in the container. More... | |
Iterators | |
iterator | begin () noexcept |
iterator | end () noexcept |
Capacity | |
bool | empty () const noexcept |
Is the container empty? More... | |
size_type | size () const noexcept |
Returns the number of files in the container. More... | |
Modifiers | |
void | push_back (value_type file) |
Appends the given file to the end of the container. More... | |
A vector-like container storing files.
using ar::Files::iterator = Container::iterator |
using ar::Files::reference = Container::reference |
using ar::Files::size_type = Container::size_type |
using ar::Files::value_type = Container::value_type |
|
default |
Constructs an empty container (without files).
ar::Files::Files | ( | Files && | other | ) |
|
default |
auto ar::Files::back | ( | ) |
Returns a reference to the last file in the container.
Calling this function on an empty container is undefined.
|
noexcept |
|
noexcept |
Is the container empty?
|
noexcept |
auto ar::Files::front | ( | ) |
Returns a reference to the first file in the container.
Calling this function on an empty container is undefined.
void ar::Files::push_back | ( | value_type | file | ) |
Appends the given file to the end of the container.
|
noexcept |
Returns the number of files in the container.