Searched refs:defaultValue (Results 1 – 2 of 2) sorted by relevance
30 V findObjectOrDefault(const std::map<K, V>& m, K key, V defaultValue = 0) {34 return defaultValue;
379 constexpr T valueOr(U&& defaultValue) const { in valueOr() argument380 return this->constructed() ? get() : std::move(defaultValue); in valueOr()