LLVM: include/llvm/ADT/StringSet.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14#ifndef LLVM_ADT_STRINGSET_H
15#define LLVM_ADT_STRINGSET_H
16
20
21namespace llvm {
22
23
24template
27
28public:
30 StringSet(std::initializer_list initializer) {
33 }
37 explicit StringSet(AllocatorTy a) : Base(a) {}
38
42
43 template
45 for (auto it = begin; it != end; ++it)
47 }
48
52
53 template
54 std::pair<typename Base::iterator, bool>
58
59
63};
64
65}
66
67#endif
This file defines the StringMap class.
ConstantRange Range(APInt(BitWidth, Low), APInt(BitWidth, High))
This file contains library features backported from future STL versions.
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
bool contains(StringRef Key) const
std::pair< iterator, bool > try_emplace(StringRef Key, ArgsTy &&...Args)
StringRef - Represent a constant reference to a string, i.e.
StringSet(AllocatorTy a)
Definition StringSet.h:37
StringSet(llvm::from_range_t, Range &&R)
Definition StringSet.h:34
std::pair< typename Base::iterator, bool > insert(const StringMapEntry< ValueTy > &mapEntry)
Definition StringSet.h:55
void insert(InputIt begin, InputIt end)
Definition StringSet.h:44
StringSet(std::initializer_list< StringRef > initializer)
Definition StringSet.h:30
bool contains(StringRef key) const
Check if the set contains the given key.
Definition StringSet.h:60
void insert_range(Range &&R)
Definition StringSet.h:49
std::pair< typename Base::iterator, bool > insert(StringRef key)
Definition StringSet.h:39
This is an optimization pass for GlobalISel generic memory operations.
constexpr auto adl_begin(RangeT &&range) -> decltype(adl_detail::begin_impl(std::forward< RangeT >(range)))
Returns the begin iterator to range using std::begin and function found through Argument-Dependent Lo...
constexpr auto adl_end(RangeT &&range) -> decltype(adl_detail::end_impl(std::forward< RangeT >(range)))
Returns the end iterator to range using std::end and functions found through Argument-Dependent Looku...