member_object_pointer.cpp

来自「Boost provides free peer-reviewed portab」· C++ 代码 · 共 28 行

CPP
28
字号
// (C) Copyright Tobias Schwinger//// Use modification and distribution are subject to the boost Software License,// Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt).//------------------------------------------------------------------------------#include <boost/mpl/assert.hpp>#include <boost/mpl/vector.hpp>#include <boost/type_traits/is_same.hpp>#include <boost/function_types/member_object_pointer.hpp>namespace ft = boost::function_types;namespace mpl = boost::mpl;using boost::is_same;class C;typedef int C::* expected;BOOST_MPL_ASSERT((  is_same< ft::member_object_pointer< mpl::vector<int,C> >::type         , expected >));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?