class first_or_second_type
Declaration
template <typename EltTy, typename FirstTy>
class first_or_second_type { /* full declaration omitted */ };
Description
Return a reference to the first or second member of a reference. Otherwise, return a copy of the member of a temporary. When passing a range whose iterators return values instead of references, the reference must be dropped from `decltype((elt.first))`, which will always be a reference, to avoid returning a reference to a temporary.
Declared at: llvm/include/llvm/ADT/STLExtras.h:1318
Templates
- EltTy
- FirstTy