bit::memory
Public Member Functions | List of all members
bit::memory::no_growth_multiplier Class Reference

A multiplier that doesn't actually grow. More...

#include <no_growth.hpp>

Public Member Functions

constexpr no_growth_multiplier () noexcept=default
 Default-constructs this growth policy.
 
 no_growth_multiplier (no_growth_multiplier &&other) noexcept=default
 Move-constructs this growth policy from an existing one. More...
 
 no_growth_multiplier (const no_growth_multiplier &other) noexcept=default
 Copy-constructs this growth policy from an existing one. More...
 
no_growth_multiplieroperator= (no_growth_multiplier &&other)=default
 Move-assigns this growth policy from an existing one. More...
 
no_growth_multiplieroperator= (const no_growth_multiplier &other)=default
 Copy-assigns this growth policy from an existing one. More...
 
constexpr void grow () noexcept
 No-op.
 
constexpr std::size_t multiplier () const noexcept
 Returns the multiplier. More...
 

Detailed Description

A multiplier that doesn't actually grow.

Satisfies
GrowthMultiplier
Satisfies
Stateless

Definition at line 47 of file no_growth.hpp.

Constructor & Destructor Documentation

◆ no_growth_multiplier() [1/2]

bit::memory::no_growth_multiplier::no_growth_multiplier ( no_growth_multiplier &&  other)
defaultnoexcept

Move-constructs this growth policy from an existing one.

Parameters
otherthe other policy to move

◆ no_growth_multiplier() [2/2]

bit::memory::no_growth_multiplier::no_growth_multiplier ( const no_growth_multiplier other)
defaultnoexcept

Copy-constructs this growth policy from an existing one.

Parameters
otherthe other policy to copy

Member Function Documentation

◆ multiplier()

constexpr std::size_t bit::memory::no_growth_multiplier::multiplier ( ) const
noexcept

Returns the multiplier.

Returns
1

◆ operator=() [1/2]

no_growth_multiplier& bit::memory::no_growth_multiplier::operator= ( no_growth_multiplier &&  other)
default

Move-assigns this growth policy from an existing one.

Parameters
otherthe other policy to move
Returns
reference to (*this)

◆ operator=() [2/2]

no_growth_multiplier& bit::memory::no_growth_multiplier::operator= ( const no_growth_multiplier other)
default

Copy-assigns this growth policy from an existing one.

Parameters
otherthe other policy to copy
Returns
reference to (*this)

The documentation for this class was generated from the following file: