Skip to content

Commit

Permalink
add has function
Browse files Browse the repository at this point in the history
  • Loading branch information
jason.l committed Apr 16, 2023
1 parent c899916 commit 7ed090e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions json_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ struct json {
bool is_nan() { return this->is<nan>(); }
bool is_hex() { return this->is<hex>(); }
bool is_not_found() { return this->is<std::nullptr_t>(); }
bool has() { return this->is<std::nullptr_t>(); }

int get_int() { return this->get<int>(); }
long get_long() { return this->get<long>(); }
Expand Down

0 comments on commit 7ed090e

Please sign in to comment.