[#absl-implicit_cast-00] = xref:absl.adoc[absl]::implicit_cast :relfileprefix: ../ :mrdocs: `implicit_cast` overloads == Synopses Declared in `<absl/base/casts.h>` Performs an implicit conversion between types following the language rules for implicit conversion; if an implicit conversion is otherwise allowed by the language in the given context, this function performs such an implicit conversion. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename To> constexpr To xref:absl/implicit_cast-01.adoc[implicit_cast](To to) requires !type_traits_internal::IsView<std::enable_if_t< !std::is_reference_v<To>, std::remove_cv_t<To>>>::value; ---- [.small]#xref:absl/implicit_cast-01.adoc[_» more..._]# Performs an implicit conversion between types following the language rules for implicit conversion; if an implicit conversion is otherwise allowed by the language in the given context, this function performs such an implicit conversion. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename To> constexpr To xref:absl/implicit_cast-07.adoc[implicit_cast](To to) requires !type_traits_internal::IsView<std::enable_if_t< !std::is_reference_v<To>, std::remove_cv_t<To>>>::value; ---- [.small]#xref:absl/implicit_cast-07.adoc[_» more..._]# Overload of `implicit_cast()` for view types (such as `std::string_view`), which participates in overload resolution when `To` is a non‐reference view type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename To> constexpr To xref:absl/implicit_cast-04.adoc[implicit_cast](To to) requires type_traits_internal::IsView<std::enable_if_t<!std::is_reference_v<To>, std::remove_cv_t<To>>>::value; ---- [.small]#xref:absl/implicit_cast-04.adoc[_» more..._]# Overload of `implicit_cast()` for view types (such as `std::string_view`), which participates in overload resolution when `To` is a non‐reference view type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename To> constexpr To xref:absl/implicit_cast-0f.adoc[implicit_cast](To to) requires type_traits_internal::IsView<std::enable_if_t<!std::is_reference_v<To>, std::remove_cv_t<To>>>::value; ---- [.small]#xref:absl/implicit_cast-0f.adoc[_» more..._]# Overload of `implicit_cast()` for reference types, which participates in overload resolution when `To` is a reference type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename To> constexpr To xref:absl/implicit_cast-09.adoc[implicit_cast](To to) requires std::is_reference_v<To>; ---- [.small]#xref:absl/implicit_cast-09.adoc[_» more..._]# == Return Value The value of `to`, converted to `To`. == Parameters [cols="1,4"] |=== | Name| Description | *to* | The value to convert to `To`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#