Boost logo

Boost :

Subject: [boost] [Block.Pointer][Container] List node allocator
From: Phil Bouchard (philippeb8_at_[hidden])
Date: 2016-03-01 00:00:54

I've refactored most of the internal algorithms of block_ptr<> and now
it is much more robust. The following example works pretty well:

The next step is to support Boost.Containers:

But after debugging the code it looks like the allocator is not used to
instantiate the nodes and I do not see how it is used by looking at the

template <class T, class VoidPointer>
struct list_node
    : public list_hook<VoidPointer>::type

    typedef T value_type;
    typedef typename list_hook<VoidPointer>::type hook_type;

    T m_data;

    T &get_data()
    { return this->m_data; }

    const T &get_data() const
    { return this->m_data; }

Am I missing something?

Thanks a lot for your help,

Boost list run by bdawes at, gregod at, cpdaniel at, john at