LLVM: llvm::detail::first_or_second_type< EltTy, FirstTy > Class Template Reference (original) (raw)
template<typename EltTy, typename FirstTy>
class llvm::detail::first_or_second_type< EltTy, FirstTy >
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.
Definition at line 1389 of file STLExtras.h.