Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Functions
vector.h File Reference
#include <initializer_list>
#include <type_traits>
#include <vector>
Include dependency graph for vector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename... Args>
std::vector< typename std::common_type< Args... >::type > Vector (Args &&...args)
 Construct a vector with the specified elements.
 
template<typename V >
V Cat (V v1, V &&v2)
 Concatenate two vectors, moving elements.
 
template<typename V >
V Cat (V v1, const V &v2)
 Concatenate two vectors.
 

Function Documentation

◆ Cat() [1/2]

template<typename V >
V Cat ( V  v1,
const V v2 
)
inline

Concatenate two vectors.

Definition at line 41 of file vector.h.

Here is the call graph for this function:

◆ Cat() [2/2]

template<typename V >
V Cat ( V  v1,
V &&  v2 
)
inline

Concatenate two vectors, moving elements.

Definition at line 32 of file vector.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Vector()

template<typename... Args>
std::vector< typename std::common_type< Args... >::type > Vector ( Args &&...  args)
inline

Construct a vector with the specified elements.

This is preferable over the list initializing constructor of std::vector:

  • It automatically infers the element type from its arguments.
  • If any arguments are rvalue references, they will be moved into the vector (list initialization always copies).

Definition at line 21 of file vector.h.

Here is the call graph for this function:
Here is the caller graph for this function: