class StringSet

Declaration

template <class AllocatorTy = llvm::MallocAllocator>
class StringSet { /* full declaration omitted */ };

Description

StringSet - A wrapper for StringMap that provides set-like functionality.

Declared at: llvm/include/llvm/ADT/StringSet.h:23

Templates

AllocatorTy = llvm::MallocAllocator

Method Overview

  • public StringSet<AllocatorTy>()
  • public StringSet<AllocatorTy>(std::initializer_list<StringRef> initializer)
  • public StringSet<AllocatorTy>(AllocatorTy a)
  • public bool contains(llvm::StringRef key) const
  • public std::pair<typename Base::iterator, bool> insert(llvm::StringRef key)
  • public template <typename InputIt>void insert(const InputIt & begin, const InputIt & end)
  • public template <typename ValueTy>std::pair<typename Base::iterator, bool> insert(const StringMapEntry<ValueTy> & mapEntry)

Methods

StringSet<AllocatorTy>()

Declared at: llvm/include/llvm/ADT/StringSet.h:27

StringSet<AllocatorTy>(
    std::initializer_list<StringRef> initializer)

Declared at: llvm/include/llvm/ADT/StringSet.h:28

Parameters

std::initializer_list<StringRef> initializer

StringSet<AllocatorTy>(AllocatorTy a)

Declared at: llvm/include/llvm/ADT/StringSet.h:32

Parameters

AllocatorTy a

bool contains(llvm::StringRef key) const

Description

Check if the set contains the given \c key.

Declared at: llvm/include/llvm/ADT/StringSet.h:51

Parameters

llvm::StringRef key

std::pair<typename Base::iterator, bool> insert(
    llvm::StringRef key)

Declared at: llvm/include/llvm/ADT/StringSet.h:34

Parameters

llvm::StringRef key

template <typename InputIt>
void insert(const InputIt& begin,
            const InputIt& end)

Declared at: llvm/include/llvm/ADT/StringSet.h:39

Templates

InputIt

Parameters

const InputIt& begin
const InputIt& end

template <typename ValueTy>
std::pair<typename Base::iterator, bool> insert(
    const StringMapEntry<ValueTy>& mapEntry)

Declared at: llvm/include/llvm/ADT/StringSet.h:46

Templates

ValueTy

Parameters

const StringMapEntry<ValueTy>& mapEntry