본문 바로가기
프로그래밍

std::pair

by 𝓃𝒶𝓃𝒶。 2015. 7. 1.
template <class T1, class T2> struct pair;

This class couples together a pair of values, which may be of different types (T1 and T2). The individual values can be accessed through its public members first and second.
Pairs are a particular case of tuple.

Template Parameters

T1    Type of member first, aliased as first_type.

T2    Type of member second, aliased as second_type.


Member Variable

first        The first value in the pair

second    The second value in the pair



ref. http://www.cplusplus.com/reference/utility/pair/


'프로그래밍' 카테고리의 다른 글

Lagrangian vs. Eulerian  (0) 2015.08.20
Maya Context  (0) 2015.08.05
무게중심좌표 Barycentric Coordinates  (0) 2015.06.26
탄젠트 공간 Tangent Space  (0) 2015.06.23
camelCase vs. underscore_seperated  (0) 2015.06.18