[#BloombergLP-balxml-ListParser-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/ListParser.adoc[ListParser]::ListParser
:relfileprefix: ../../../
:mrdocs:

Create a parser for lists&period;

== Synopsis

Declared in `&lt;balxml&lowbar;listparser&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
ListParser(
    xref:BloombergLP/balxml/ListParser/ParseElementCallback.adoc[ParseElementCallback] parseElementCallback,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

== Description

Use the specified `parseElementCallback` functor to parse each element and the optionally specified `basicAllocator` for supplying memory&period; If `basicAllocator` is 0, the currently installed default allocator will be used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *parseElementCallback*
| functor used to parse each list element
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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