class const_iterator

Declaration

class const_iterator : public iterator_facade_base { /* full declaration omitted */ };

Description

Path iterator. This is an input iterator that iterates over the individual components in\a path. The traversal order is as follows: * The root-name element, if present. * The root-directory element, if present. * Each successive filename element, if present. * Dot, if one or more trailing non-root slash characters are present. Traversing backwards is possible with \a reverse_iterator Iteration examples. Each component is separated by ',':

Declared at: llvm/include/llvm/Support/Path.h:73

Inherits from: iterator_facade_base

Member Variables

private llvm::StringRef Path
The entire path.
private llvm::StringRef Component
The current component. Not necessarily in Path.
private size_t Position = 0
The iterators current position within Path.
private llvm::sys::path::Style S = Style::native
The path style to use.