2009-11-13 15 views

Respuesta

13

Un encabezado de conveniencia es típicamente (no solo en Boost) un encabezado que incluye un número de otros encabezados (que contienen código real) que se usan comúnmente juntos, aunque no hay dependencias duras entre ellos (por eso están separados en primer lugar).

contenedores puntero
7

Incluye una gran cantidad de diferentes pero relacionados cabeceras

Por ejemplo realce/smart_ptr.hpp incluye compartido y con ámbito:

// 
// 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 
Cuestiones relacionadas