LLVM API Documentation

Public Member Functions
llvm::StringSet< AllocatorTy > Class Template Reference

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

#include <StringSet.h>

Inheritance diagram for llvm::StringSet< AllocatorTy >:
Inheritance graph
[legend]
Collaboration diagram for llvm::StringSet< AllocatorTy >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool insert (StringRef Key)

Detailed Description

template<class AllocatorTy = llvm::MallocAllocator>
class llvm::StringSet< AllocatorTy >

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

Definition at line 23 of file StringSet.h.


Member Function Documentation

template<class AllocatorTy = llvm::MallocAllocator>
bool llvm::StringSet< AllocatorTy >::insert ( StringRef  Key) [inline]

insert - Insert the specified key into the set. If the key already exists in the set, return false and ignore the request, otherwise insert it and return true.

Definition at line 30 of file StringSet.h.

References llvm::StringRef::empty(), and llvm::StringMap< char, AllocatorTy >::GetOrCreateValue().

Referenced by llvm::opt::OptTable::OptTable().


The documentation for this class was generated from the following file: