Return true if permissions uses only bits defined in Enum.
Synopsis
Declared in <bdls_filepermissions.h>
static
bool
isValid(int permissions);
Description
Return true if the specified permissions bit mask consists only of bits defined in Enum (i.e., bits in k_MASK), and false otherwise. A negative value always returns false.
Return Value
true if permissions uses only defined bits, and false otherwise
Parameters
Name |
Description |
permissions |
permission bit mask to validate |
Created with MrDocs