14.8.2.1 ++, , :
- , - .
, . 14.8.2.4:
:
Bar<T>::type, Bar<T> - , , , ... (.. Foo f<int>(v)).
, , , , , , : , Bar :
template<typename T>
struct Bar
{
typedef std::pair<T,T> type;
};
template<>
struct Bar<char>
{
typedef std::pair<int,int> type;
};
Foo std::vector<std::pair<int,int> >: int char? , , Bar , typedef (, , , , , : -)!)