[#BloombergLP-bslma-AllocatorTraits_HasConstructMethod]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::AllocatorTraits&lowbar;HasConstructMethod
:relfileprefix: ../../
:mrdocs:

Metafunction detecting whether `T` provides a matching `construct` method&period;

== Synopsis

Declared in `&lt;bslma&lowbar;allocatortraits&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T,
    class Return,
    class&period;&period;&period; Args&gt;
struct AllocatorTraits&lowbar;HasConstructMethod;
----

== Description

This `struct` template provides a mechanism for determining whether a given (template parameter) `T` defines a `construct` method with the specified return type and argument types&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/AllocatorTraits_HasConstructMethod/type.adoc[`type`] 
| `integral&lowbar;constant` for whether `T` has a `construct` method with the specified signature&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/AllocatorTraits_HasConstructMethod/value.adoc[`value`] 
| `true` if `T` has a `construct` method with the specified signature&period;
|===



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