Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ah-args-ctor.H File Reference

Variadic constructor macros for containers. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Args_Ctor(Name, Type)
 

Detailed Description

Variadic constructor macros for containers.

This file provides macros for generating variadic constructors that allow containers to be initialized with multiple elements at construction time.

Author
Leandro Rabindranath León

Definition in file ah-args-ctor.H.

Macro Definition Documentation

◆ Args_Ctor

#define Args_Ctor (   Name,
  Type 
)
Value:
template <typename ... Args> \
Name(const Type & item, Args & ... args) \
: Name(args...) \
{ \
this->append(item); \
} \
\
template <typename ... Args> \
Name(Type && item, Args & ... args) \
: Name(args...) \
{ \
this->append(item); \
}

Definition at line 46 of file ah-args-ctor.H.