alloc/aligned: rename Successor to ChildT

This commit is contained in:
Danny Robson 2016-10-10 19:26:40 +11:00
parent 3dc31a9d10
commit 2c4f6f5526

View File

@ -19,12 +19,12 @@
namespace util::alloc { namespace util::alloc {
/// wraps a child allocator and enforces a fixed alignment /// wraps a child allocator and enforces a fixed alignment
template <typename Successor> template <typename ChildT>
class aligned { class aligned {
public: public:
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
template <typename ...Args> template <typename ...Args>
aligned (std::size_t _alignment, Args &&...args): aligned (size_t _alignment, Args &&...args):
m_successor (std::forward<Args> (args)...), m_successor (std::forward<Args> (args)...),
m_alignment (_alignment) m_alignment (_alignment)
{ ; } { ; }
@ -71,8 +71,8 @@ namespace util::alloc {
private: private:
Successor m_successor; ChildT m_successor;
std::size_t m_alignment; size_t m_alignment;
}; };
} }