[#boost-urls-grammar-aligned_storage]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/grammar.adoc[grammar]::aligned&lowbar;storage
:relfileprefix: ../../../
:mrdocs:


Provides an aligned storage buffer aligned for T

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/grammar/recycled.hpp#L43[boost&sol;url&sol;grammar&sol;recycled&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T&gt;
using aligned&lowbar;storage = &sol;&ast; implementation-defined &ast;&sol;::aligned&lowbar;storage&lowbar;impl&lt;implementation&lowbar;defined&colon;&colon;nearest&lowbar;pow2(sizeof(T), 64), (alignof(&colon;&colon;max&lowbar;align&lowbar;t) &gt; alignof(T)) ? alignof(&colon;&colon;max&lowbar;align&lowbar;t) &colon; alignof(T)&gt;;
----

== Description


[,cpp]
----
template<class T>
struct aligned_storage
{
    /// Return a pointer to the aligned storage area
    void* addr() noexcept;

    /// Return a pointer to the aligned storage area
    void const* addr() const noexcept;
};
----




[.small]#Created with https://www.mrdocs.com[MrDocs]#
