📄 stringset.h
字号:
// Copyright (c) 1994 James Clark// See the file COPYING for copying permission.#ifndef StringSet_INCLUDED#define StringSet_INCLUDED 1#include "StringC.h"#include "Hash.h"#include "Boolean.h"#include "OwnerTable.h"#ifdef SP_NAMESPACEnamespace SP_NAMESPACE {#endifclass StringSetKey {public: static inline const StringC &key(const StringC &str) { return str; }};class StringSet {public: StringSet(); Boolean add(const StringC &); // return 1 if already there void swap(StringSet &); void clear();private: StringSet(const StringSet &); // undefined void operator=(const StringSet &); // undefined OwnerTable<StringC, StringC, Hash, StringSetKey> table_;};inlinevoid StringSet::clear(){ table_.clear();}#ifdef SP_NAMESPACE}#endif#endif /* not StringSet_INCLUDED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -