llvm.org GIT mirror llvm / 463ba76 include / llvm / Support / ReverseIteration.h
463ba76

Tree @463ba76 (Download .tar.gz)

ReverseIteration.h @463ba76raw · history · blame

#ifndef LLVM_SUPPORT_REVERSEITERATION_H
#define LLVM_SUPPORT_REVERSEITERATION_H

#include "llvm/Config/abi-breaking.h"
#include "llvm/Support/PointerLikeTypeTraits.h"

namespace llvm {

template<class T = void *>
bool shouldReverseIterate() {
#if LLVM_ENABLE_REVERSE_ITERATION
  return detail::IsPointerLike<T>::value;
#else
  return false;
#endif
}

}
#endif