Static Public Member Functions | List of all members
Containers Struct Referencefinal

Utilities for containers. More...

#include <Containers.hpp>

Static Public Member Functions

template<template< typename ... > class DstT, typename ... D, template< typename ... > class SrcT, typename ... S, template< typename ... > class ... SrcMT, typename ... SM>
static void append (DstT< D ... > &dst, const SrcT< S ... > &src, const SrcMT< SM ... > &... srcMore)
 Appends the source containers to the destination container. More...
 
template<template< typename ... > class DstT, typename ... D, template< typename ... > class SrcT, typename ... S>
static void append (DstT< D ... > &dst, const SrcT< S ... > &src)
 Appends the source container to the destination container. More...
 
template<template< typename ... > class ContainerT, typename ... C, template< typename ... > class ... ContainerMT, typename ... M>
static ContainerT< C ... > concatenate (const ContainerT< C ... > &c, const ContainerMT< M ... > &... cMore)
 Concatenates the containers to form a new container. More...
 
template<template< typename ... > class C, typename ... T, typename U >
static bool contains (const C< T ... > &container, const U &value)
 Does the container contain the supplied value? More...
 
template<template< typename ... > class C, typename ... T, template< typename ... > class V, typename ... U>
static bool contains (const C< T ... > &container, const V< U ... > &values)
 Does the container contain one of the supplied values? More...
 
template<typename D , typename S , template< typename ... > class ContainerT, typename ... DC, typename ... SC>
static ContainerT< D, DC ... > map (const ContainerT< S, SC ... > &input, std::function< D(const S &)> f)
 Perform a map operator (transform the input elements to a container of different elements). More...
 

Detailed Description

Utilities for containers.

Member Function Documentation

◆ append() [1/2]

static void append ( DstT< D ... > &  dst,
const SrcT< S ... > &  src,
const SrcMT< SM ... > &...  srcMore 
)
inlinestatic

Appends the source containers to the destination container.

◆ append() [2/2]

static void append ( DstT< D ... > &  dst,
const SrcT< S ... > &  src 
)
inlinestatic

Appends the source container to the destination container.

◆ concatenate()

static ContainerT<C ...> concatenate ( const ContainerT< C ... > &  c,
const ContainerMT< M ... > &...  cMore 
)
inlinestatic

Concatenates the containers to form a new container.

The type of the resulting container is the same as the first source container.

◆ contains() [1/2]

static bool contains ( const C< T ... > &  container,
const U &  value 
)
inlinestatic

Does the container contain the supplied value?

◆ contains() [2/2]

static bool contains ( const C< T ... > &  container,
const V< U ... > &  values 
)
inlinestatic

Does the container contain one of the supplied values?

◆ map()

static ContainerT<D, DC ...> map ( const ContainerT< S, SC ... > &  input,
std::function< D(const S &)>  f 
)
inlinestatic

Perform a map operator (transform the input elements to a container of different elements).


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