Variant container for socket option values: integer or string. Implicit ctor/compares with int for backward compatibility.
Synopsis
Declared in <folly/io/SocketOptionValue.h>
class SocketOptionValue;
Member Functions
Name |
Description |
|
Constructors |
Returns the int value; requires hasInt() to be true. |
|
Returns the string value; requires hasString() to be true. |
|
Returns true if the container holds an int. |
|
Returns true if the container holds a string. |
|
Returns the held string, or the integer converted to a string. |
Friends
Name |
Description |
Compares the value against a string for inequality. |
|
Compares the value against an int for inequality. |
|
Compares two values for inequality. |
|
Compares the value against a string. |
|
Compares the value against an int. |
|
Compares two values for equality. |