[#BloombergLP-bslalg-FunctorAdapter-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::FunctorAdapter
:relfileprefix: ../../
:mrdocs:

This class provides a metafunction that aliases a callable object to a functor type&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;functoradapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class CALLABLE&lowbar;OBJECT&gt;
class FunctorAdapter;
----

== Description

This class provides a metafunction that defines an alias `Type` for the parameterized `CALLABLE&lowbar;OBJECT`&period; `Type` is functor type that provides the same operation as the parameterized `CALLABLE&lowbar;OBJECT`&period; Note that function pointers are supported through a specialization of this template&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/FunctorAdapter-09/Type.adoc[`Type`] 
| This `typedef` is an alias for the functor&period;
|===


== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/FunctorAdapter-03.adoc[`FunctorAdapter&lt;FUNCTION*&gt;`] 
| This specialization of `FunctorAdapter` defines an alias `Type` for a functor that delegates to a function pointer matching the parameterized `FUNCTION` type&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/HashTable_BaseHasher.adoc[`HashTable&lowbar;BaseHasher`] 
| This `struct` adapts the (template parameter) `HASHER` type for use as the base hasher of a `HashTable`&period;
| xref:BloombergLP/bslstl/HashTable_Comparator.adoc[`HashTable&lowbar;Comparator`] 
| Comparator adapter used by `HashTable`&period;
|===


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