mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Document aligned_storage and use alignment_of_v.
This commit is contained in:
parent
d247b77a1e
commit
c9bc8f01e3
@ -24,13 +24,13 @@ namespace insp
|
||||
template <typename T> class aligned_storage;
|
||||
}
|
||||
|
||||
/** */
|
||||
/** A block of preallocated memory which an object can be created into. */
|
||||
template <typename T>
|
||||
class insp::aligned_storage final
|
||||
{
|
||||
private:
|
||||
/** The underlying aligned storage block. */
|
||||
mutable typename std::aligned_storage<sizeof(T), std::alignment_of<T>::value>::type data;
|
||||
mutable typename std::aligned_storage<sizeof(T), std::alignment_of_v<T>>::type data;
|
||||
|
||||
public:
|
||||
/** Default constructor for the aligned_storage class. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user