class LazyRE2

Defined at line 928 of file ../../third_party/re2/src/re2/re2.h

Helper for writing global or static RE2s safely.

Write

static LazyRE2 re = {".*"};

and then use *re instead of writing

static RE2 re(".*");

The former is more careful about multithreaded

situations than the latter.

N.B. This class never deletes the RE2 object that

it constructs: that's a feature, so that it can be used

for global and function static variables.

Public Members

const char * pattern_
CannedOptions options_
NoArg barrier_against_excess_initializers_
RE2 * ptr_
once_flag once_

Public Methods

RE2 & operator* ()

Pretend to be a pointer to Type (never NULL due to on-demand creation):

Defined at line 938 of file ../../third_party/re2/src/re2/re2.h

RE2 * operator-> ()

Defined at line 939 of file ../../third_party/re2/src/re2/re2.h

RE2 * get ()

Named accessor/initializer:

Defined at line 942 of file ../../third_party/re2/src/re2/re2.h