// // 2.12.external.template.cpp // chapter 2 language usability // modern cpp tutorial // // created by changkun at changkun.de // #include #include template class std::vector; // forcely instantiation extern template class std::vector; // external template for avoiding instantiation in this file template class MagicType { bool magic = T; }; int main() { // the >> in template std::vector> matrix; std::vector2)>> magic; }