aboutsummaryrefslogtreecommitdiffstats
path: root/include/utility/aligned_storage.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-31 13:16:57 +0000
committerGravatar Sadie Powell2022-01-31 13:16:57 +0000
commitc9bc8f01e3eff91022093507e03cf7fe2c6c8838 (patch)
tree4000bd43f6def51e1913da0471f3b94b6818ceed /include/utility/aligned_storage.h
parentMove stdalgo::map::difference to its own utility header. (diff)
Document aligned_storage and use alignment_of_v.
Diffstat (limited to 'include/utility/aligned_storage.h')
-rw-r--r--include/utility/aligned_storage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/utility/aligned_storage.h b/include/utility/aligned_storage.h
index fbd9b5fba..e3e3895f8 100644
--- a/include/utility/aligned_storage.h
+++ b/include/utility/aligned_storage.h
@@ -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. */