module
UtilitiesStandard library utilities.
Files
- file bn_utility.h
Classes
-
template<typename Type1, typename Type2>class bn::pair
- Provides a way to store two heterogeneous objects as a single unit.
Functions
-
template<typename Type1, typename Type2>auto make_pair(Type1&& x, Type2&& y) -> pair<typename decay<Type1>::type, typename decay<Type2>::type> constexpr
- Creates a pair deducing its types from the types of the arguments.
Function documentation
#include <bn_utility.h>
template<typename Type1, typename Type2>
pair<typename decay<Type1>::type, typename decay<Type2>::type> make_pair(Type1&& x,
Type2&& y) constexpr
Creates a pair deducing its types from the types of the arguments.
Parameters | |
---|---|
x | First element to construct the pair from. |
y | Second element to construct the pair from. |
Returns | pair containing the given values. |