16template <
typename D,
typename S>
constexpr D SkTo(
S s) {
21template <
typename S>
constexpr int8_t
SkToS8(
S x) {
return SkTo<int8_t>(
x); }
22template <
typename S>
constexpr uint8_t
SkToU8(
S x) {
return SkTo<uint8_t>(
x); }
23template <
typename S>
constexpr int16_t
SkToS16(
S x) {
return SkTo<int16_t>(
x); }
24template <
typename S>
constexpr uint16_t
SkToU16(
S x) {
return SkTo<uint16_t>(
x); }
25template <
typename S>
constexpr int32_t
SkToS32(
S x) {
return SkTo<int32_t>(
x); }
26template <
typename S>
constexpr uint32_t
SkToU32(
S x) {
return SkTo<uint32_t>(
x); }
27template <
typename S>
constexpr int64_t
SkToS64(
S x) {
return SkTo<int64_t>(
x); }
28template <
typename S>
constexpr uint64_t
SkToU64(
S x) {
return SkTo<uint64_t>(
x); }
29template <
typename S>
constexpr int SkToInt(
S x) {
return SkTo<int>(
x); }
30template <
typename S>
constexpr unsigned SkToUInt(
S x) {
return SkTo<unsigned>(
x); }
31template <
typename S>
constexpr size_t SkToSizeT(
S x) {
return SkTo<size_t>(
x); }
35template <
typename T>
static constexpr bool SkToBool(
const T&
x) {
constexpr int8_t SkToS8(S x)
constexpr size_t SkToSizeT(S x)
constexpr uint16_t SkToU16(S x)
constexpr uint64_t SkToU64(S x)
constexpr int32_t SkToS32(S x)
constexpr int64_t SkToS64(S x)
constexpr int SkToInt(S x)
static constexpr bool SkToBool(const T &x)
constexpr uint8_t SkToU8(S x)
constexpr int16_t SkToS16(S x)
constexpr unsigned SkToUInt(S x)
constexpr uint32_t SkToU32(S x)