瀏覽代碼

Added leveldb::Status::IsInvalidArgument() method.

All other Status::Code enum values have an Is**() method with the one
exception of InvalidArgument.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=97166441
xry
cmumford 9 年之前
committed by Chris Mumford
父節點
當前提交
5208e7952d
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      include/leveldb/status.h

+ 3
- 0
include/leveldb/status.h 查看文件

@ -63,6 +63,9 @@ class Status {
// Returns true iff the status indicates a NotSupportedError.
bool IsNotSupportedError() const { return code() == kNotSupported; }
// Returns true iff the status indicates an InvalidArgument.
bool IsInvalidArgument() const { return code() == kInvalidArgument; }
// Return a string representation of this status suitable for printing.
// Returns the string "OK" for success.
std::string ToString() const;

Loading…
取消
儲存