template
타입이나 값을 매개변수로 받아, 컴파일 시점에 실제 인자에 맞는코드를 생성한다.templateT Max(T a, T b){ return (a > b) ? a : b;}int x = Max(3, 5); // T = int// int Max(int a, int b)double y = Max(2.1, 4.3); // T = double// double Max(double a, double b)template parameter에서 typename, class 둘다 같은 의미로 사용된다.template template template parameter는 여러개를 선언할 수 있다.template 기본 template arguments를 가질 수 있음.template > class vector;vector my..