5
boost中的「header」和「convenience header」有什麼區別?Boost:什麼是「便利標題」?
boost中的「header」和「convenience header」有什麼區別?Boost:什麼是「便利標題」?
的簡便頭是通常(不只是在升壓)的報頭,其包括數,通常使用的一起其它標題(包含實際的代碼),儘管它們之間存在着沒有硬相關(這就是爲什麼它們首先是分開的)。
它包括了很多不同的但相關的報頭
例如升壓的/ smart_ptr.hpp包括共享和範圍的指針容器:
//
// smart_ptr.hpp
//
// For convenience, this header includes the rest of the smart
// pointer library headers.
//
// Copyright (c) 2003 Peter Dimov Distributed under 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)
//
// http://www.boost.org/libs/smart_ptr/smart_ptr.htm
//
#include <boost/config.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_array.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/shared_array.hpp>
#if !defined(BOOST_NO_MEMBER_TEMPLATES) || defined(BOOST_MSVC6_MEMBER_TEMPLATES)
# include <boost/weak_ptr.hpp>
# include <boost/intrusive_ptr.hpp>
# include <boost/enable_shared_from_this.hpp>
#endif