[#BloombergLP-balm-Collector-loadAndReset] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Collector.adoc[Collector]::loadAndReset :relfileprefix: ../../../ :mrdocs: Load into the specified `record` the id of the metric being collected as well as the current count, total, minimum, and maximum aggregated values for that metric; then reset the count, total, minimum, and maximum values to their default states. After this operation, the count and total values will be 0, the minimum value will be `MetricRecord::k_DEFAULT_MIN`, and the maximum value will be `MetricRecord::k_DEFAULT_MAX`. Note that this operation is logically equivalent to calling the `load` and then the `reset` methods except that it is performed as a single atomic operation. == Synopsis Declared in `<balm_collector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void loadAndReset(xref:BloombergLP/balm/MetricRecord.adoc[MetricRecord]* record); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#