MCPcopy Create free account
hub / github.com/chen3feng/toft / InsertPred

Method InsertPred

base/string/byte_set.h:76–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 // bool pred(unsigned char byte)
75 template <typename Pred>
76 void InsertPred(const Pred& pred)
77 {
78 for (int c = 0; c <= UCHAR_MAX; ++c)
79 {
80 if (pred(c))
81 Insert(c);
82 }
83 }
84
85 // insert any bytes in str into set
86 void InsertString(const char* str)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected