getValue overloads

Synopses

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

Load the first value found for key into *value.

std::size_t
getValue(
    VALUE* value,
    KEY const& key) const;

Load every value found for key into *valuesPtr.

std::size_t
getValue(
    bsl::vector<VALUE>* valuesPtr,
    KEY const& key) const;

Same as the preceding overload, using a std::pmr::vector buffer.

std::size_t
getValue(
    std::pmr::vector<VALUE>* valuesPtr,
    KEY const& key) const;

Same as the preceding overload, using a std::vector buffer.

std::size_t
getValue(
    std::vector<VALUE>* valuesPtr,
    KEY const& key) const;

Return Value

  • 1 on success, and 0 if key does not exist

  • number of elements found with key

Parameters

Name

Description

value

receives the value of the first matching element

key

key of the element to look up

valuesPtr

receives the values of all matching elements

Created with MrDocs