Added value_t::to_size_t method
This commit is contained in:
parent
8887fe9fa9
commit
f322769775
1 changed files with 11 additions and 10 deletions
21
src/value.h
21
src/value.h
|
|
@ -775,16 +775,17 @@ public:
|
||||||
* its underlying type, where possible. If not possible, an
|
* its underlying type, where possible. If not possible, an
|
||||||
* exception is thrown.
|
* exception is thrown.
|
||||||
*/
|
*/
|
||||||
bool to_boolean() const;
|
bool to_boolean() const;
|
||||||
int to_int() const;
|
int to_int() const;
|
||||||
long to_long() const;
|
long to_long() const;
|
||||||
datetime_t to_datetime() const;
|
std::size_t to_size_t() const { return static_cast<std::size_t>(to_long()); }
|
||||||
date_t to_date() const;
|
datetime_t to_datetime() const;
|
||||||
amount_t to_amount() const;
|
date_t to_date() const;
|
||||||
balance_t to_balance() const;
|
amount_t to_amount() const;
|
||||||
string to_string() const;
|
balance_t to_balance() const;
|
||||||
mask_t to_mask() const;
|
string to_string() const;
|
||||||
sequence_t to_sequence() const;
|
mask_t to_mask() const;
|
||||||
|
sequence_t to_sequence() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dynamic typing conversion methods.
|
* Dynamic typing conversion methods.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue