extended_type_info_no_rtti.cpp

来自「C++的一个好库。。。现在很流行」· C++ 代码 · 共 44 行

CPP
44
字号
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// extended_type_info_no_rtti.cpp: specific implementation of type info
// that is NOT based on typeid

// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . 
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)

//  See http://www.boost.org for updates, documentation, and revision history.

#include <boost/config.hpp>
#include <cstring>
#if defined(BOOST_NO_STDC_NAMESPACE)
namespace std{ using ::strcmp; }
#endif

#define BOOST_SERIALIZATION_SOURCE
#include <boost/serialization/extended_type_info_no_rtti.hpp>

namespace boost { 
namespace serialization { 
namespace detail { 

BOOST_SERIALIZATION_DECL(bool)
extended_type_info_no_rtti_0::less_than(
    const boost::serialization::extended_type_info &rhs) const 
{
    return std::strcmp(m_key, rhs.get_key()) < 0;
}

BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())  
extended_type_info_no_rtti_0::extended_type_info_no_rtti_0() :
    boost::serialization::extended_type_info("extended_type_info_no_rtti")
{}

BOOST_SERIALIZATION_DECL(BOOST_PP_EMPTY())  
extended_type_info_no_rtti_0::~extended_type_info_no_rtti_0()
{}

} // namespece detail
} // namespace serialization
} // namespace boost

⌨️ 快捷键说明

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