Tweaking the doxygen. (#700)

* Tweaking the doxygen.

* Fixing typo.
This commit is contained in:
Daniel Lemire 2020-04-14 11:31:46 -04:00 committed by GitHub
parent d7370cc916
commit 334a486737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -389,25 +389,31 @@ public:
really_inline bool is_null() const noexcept; really_inline bool is_null() const noexcept;
/** /**
* Tell whether the value can be cast to the given primitive type. * Tell whether the value can be cast to provided type (T).
* *
* Supported types: * Supported types:
* - Boolean: bool * - Boolean: bool
* - Number: double, uint64_t, int64_t * - Number: double, uint64_t, int64_t
* - String: std::string_view, const char * * - String: std::string_view, const char *
* - Array: array * - Array: dom::array
* - Object: dom::object
*
* @tparam T bool, double, uint64_t, int64_t, std::string_view, const char *, dom::array, dom::object
*/ */
template<typename T> template<typename T>
really_inline bool is() const noexcept; really_inline bool is() const noexcept;
/** /**
* Get the value as the given primitive type. * Get the value as the provided type (T).
* *
* Supported types: * Supported types:
* - Boolean: bool * - Boolean: bool
* - Number: double, uint64_t, int64_t * - Number: double, uint64_t, int64_t
* - String: std::string_view, const char * * - String: std::string_view, const char *
* - Array: array * - Array: dom::array
* - Object: dom::object
*
* @tparam T bool, double, uint64_t, int64_t, std::string_view, const char *, dom::array, dom::object
* *
* @returns The value cast to the given type, or: * @returns The value cast to the given type, or:
* INCORRECT_TYPE if the value cannot be cast to the given type. * INCORRECT_TYPE if the value cannot be cast to the given type.