std::isxdigit(std::locale) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::isxdigit(std::locale)

From cppreference.com
< cpp‎ | locale

Defined in header `<locale>` |  |
template< class charT > bool isxdigit( charT ch, const locale& loc ); |  |

Checks if the given character is classified as a hexadecimal digit by the given locale's std::ctype facet.

### [edit] Parameters

ch | - | character
loc | - | locale

### [edit] Return value

Returns true if the character is classified as a hexadecimal digit, false otherwise.

### [edit] Possible implementation

    template< class charT >
    bool isxdigit( charT ch, const std::locale& loc ) {
        return std::use_facet<std::ctype<charT>>(loc).is(std::ctype_base::xdigit, ch);
    }

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

isxdigit | checks if a character is a hexadecimal character (function) [edit]
iswxdigit | checks if a character is a hexadecimal character (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/locale/isxdigit&oldid=58137"
Category:

- Todo no example