#include <value.hpp>
|
| Object (std::map< std::string, Value > map) |
|
| Object (std::initializer_list< std::pair< std::string, Value >> values) |
|
Value const & | operator[] (std::string const &key) const |
|
std::size_t | Size () const |
|
std::size_t | Count (std::string const &key) const |
|
Iterator | begin () const |
|
Iterator | end () const |
|
Iterator | Find (std::string const &key) const |
|
|
std::ostream & | operator<< (std::ostream &out, Object const &obj) |
|
Object type for values. Provides const iteration and indexing.
◆ Object()
launchdarkly::Value::Object::Object |
( |
std::map< std::string, Value > |
map | ) |
|
|
inline |
Create an Object from a map of Values.
- Parameters
-
map | The map to base the object on. |
◆ Count()
std::size_t launchdarkly::Value::Object::Count |
( |
std::string const & |
key | ) |
const |
Get the number of items with the given key. Will be 1 or 0.
- Parameters
-
key | The key to get a count for. |
- Returns
- The count of items with the given key.
◆ Find()
Find a Value by key. Operates like find
on a std::map.
- Parameters
-
key | The key to find a value for. |
- Returns
- The value, or the end iterator.
◆ Size()
std::size_t launchdarkly::Value::Object::Size |
( |
| ) |
const |
The number of items in the Object.
- Returns
- The number of items in the Object.
The documentation for this class was generated from the following files:
- /home/runner/work/cpp-sdks/cpp-sdks/libs/common/include/launchdarkly/value.hpp
- /home/runner/work/cpp-sdks/cpp-sdks/libs/common/src/value.cpp