template<class Selector>
template<class Value, class Source, class ValueDecayed = typename std::decay<Value>::type, class Key = invoke_result_t<Selector, Value>, class KeyDecayed = typename std::decay<Key>::type>
class folly::gen::detail::GroupByAdjacent< Selector >::Generator< Value, Source, ValueDecayed, Key, KeyDecayed >
Definition at line 1236 of file Base-inl.h.
template<class Selector >
template<class Value , class Source , class ValueDecayed = typename std::decay<Value>::type, class Key = invoke_result_t<Selector, Value>, class KeyDecayed = typename std::decay<Key>::type>
template<class Handler >
Definition at line 1250 of file Base-inl.h.
References folly::Optional< Value >::emplace(), group, handler(), folly::Optional< Value >::hasValue(), folly::gen::move, folly::none, value, folly::Optional< Value >::value(), testing::Value(), and values().
1251 Optional<KeyDecayed> key =
none;
1258 if (!key.hasValue()) {
1259 key.emplace(newKey);
1262 if (key == newKey) {
1264 values.push_back(value);
1275 values.push_back(value);
1284 if (!key.hasValue()) {
constexpr detail::Map< Move > move
std::vector< Value > VectorType
Group< KeyDecayed, ValueDecayed > GroupType
void handler(int, siginfo_t *, void *)
bool Value(const T &value, M matcher)
Value & emplace(Args &&...args)
Optional< NamedGroup > group
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
std::vector< int > values(1'000)
template<class Selector >
template<class Value , class Source , class ValueDecayed = typename std::decay<Value>::type, class Key = invoke_result_t<Selector, Value>, class KeyDecayed = typename std::decay<Key>::type>
template<class Selector >
template<class Value , class Source , class ValueDecayed = typename std::decay<Value>::type, class Key = invoke_result_t<Selector, Value>, class KeyDecayed = typename std::decay<Key>::type>
template<class Selector >
template<class Value , class Source , class ValueDecayed = typename std::decay<Value>::type, class Key = invoke_result_t<Selector, Value>, class KeyDecayed = typename std::decay<Key>::type>