Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

grammar::recycled

A thread-safe collection of instances of T.

Synopsis

Defined in header <boost/url/grammar/recycled.hpp>

template<
    class T>
class recycled
Member Functions

Name

Description

recycled [constructor]

Constructor.

~recycled [destructor]

Destructor.

Description

Instances of this type may be used to control where recycled instances of T come from when used with recycled_ptr.

Example
static recycled< std::string > bin;

recycled_ptr< std::string > ps( bin );

// Put the string into a known state
ps->clear();
See Also

recycled_ptr.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext