Scott Meyer의 const_cast() 패턴

export class Spreadsheet
{
public:
	SpreadsheetCell& getcellAt(size_t x, size_t y);
	const SpreadsheetCell& getCellAt(size x, size y) const;
}

selective instantiation

explicit template instantiation

template class Grid<int>;

템플릿 코드를 여러 파일로 나누기

  1. 모듈 파티션을 이용해서 다른 파일에 정의를 한다.