template_tpl.cpp
来自「Boost provides free peer-reviewed portab」· C++ 代码 · 共 27 行
CPP
27 行
// Copyright (C) 2006 Arkadiy Vertleyb// Use, modification and distribution is subject to the Boost Software// License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)#include "test.hpp"#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()template<class T, class U> struct t0;template<class T, int n> struct t1;template<template<class, class> class T, template<class, int> class U> struct t2;BOOST_TYPEOF_REGISTER_TEMPLATE(t0, 2)BOOST_TYPEOF_REGISTER_TEMPLATE(t1, (class)(int))BOOST_TYPEOF_REGISTER_TEMPLATE(t2, (BOOST_TYPEOF_TEMPLATE(2)) (BOOST_TYPEOF_TEMPLATE((class)(int))) )BOOST_STATIC_ASSERT((boost::type_of::test<t2<t0, t1> >::value));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?