FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
vector.hpp File Reference

Vector helpers. More...

#include <vector>
#include "concept.hpp"
#include "string.hpp"
Include dependency graph for vector.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ns_vector
 Vector and container manipulation utilities.
 

Functions

template<ns_concept::Iterable R1, ns_concept::Iterable R2>
void ns_vector::append_range (R1 &to, R2 const &from) noexcept
 Appends a range of values from a src to a dst.
 
template<ns_concept::Iterable R, typename... Args>
requires ( std::convertible_to<Args, typename R::value_type> && ... )
void ns_vector::push_back (R &r, Args &&... args) noexcept
 Helper to push back multiple elements into an input iterator.
 
template<ns_concept::Iterable R, typename... Args>
requires ( std::convertible_to<Args, typename R::value_type> && ... )
void ns_vector::push_front (R &r, Args &&... args) noexcept
 Helper to prepend multiple elements to the front of a container.
 
template<ns_concept::Iterable R = std::vector<std::string>>
ns_vector::from_string (ns_concept::StringRepresentable auto &&t, char delimiter) noexcept
 Creates a range from a string.
 

Detailed Description

Vector helpers.

Author
Ruan Formigoni

Definition in file vector.hpp.