cgal/STL_Extension/doc/STL_Extension/CGAL/array.h

30 lines
750 B
C++

namespace CGAL {
/*!
\ingroup PkgSTLExtensionRef
\returns `std::array<T, N>` where `N` is the number of arguments given to
the function. The position of each argument in the array is the same
as its position in the argument list.
The maximal number of arguments is `6`.
*/
template <class T> std::array<T, N> make_array(const T&...);
/*!
Functor that constructs `std::array<T, N>` where `N` is the number of
arguments given to the function. The position of each argument in the
array is the same as its position in the argument list.
This is the functor version of `make_array()`.
The maximal number of arguments is `6`.
*/
struct Construct_array
{
template <class T> std::array<T, N> operator()(const T&...);
};
} /* end namespace CGAL */