[#BloombergLP-bslstl-DefaultSearcher_CanOptimize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::DefaultSearcher&lowbar;CanOptimize
:relfileprefix: ../../
:mrdocs:

This component&hyphen;private meta&hyphen;function `struct` provides a member enumerator `value` that is `true` if all of the specified `FORWARD&lowbar;ITR&lowbar;NEEDLE,` `EQUAL,` and `FORWARD&lowbar;ITR&lowbar;HAYSTACK` meet the criteria for an optimization of the default searcher, and has the value `false` otherwise&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;defaultsearcher&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FORWARD&lowbar;ITR&lowbar;NEEDLE,
    class EQUAL,
    class FORWARD&lowbar;ITR&lowbar;HAYSTACK&gt;
struct DefaultSearcher&lowbar;CanOptimize;
----

== Enums

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/DefaultSearcher_CanOptimize/_04enum.adoc[`Unnamed enum`] 
| Enumeration of implementation constants for the default searcher&period;
|===



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