bitPhile

Home

❯

notes

❯

tech

❯

c++

❯

User defined conversions

User defined conversions

Apr 07, 20261 min read

  • cpp
  • programming
  • oops

User defined conversions are member functions which are used by the compiler for the conversions of values to (or from) program-defined types such as classes.

When converting a value to a program defined type, compiler tries to find the function which can do that. These functions are usually constructors called converting constructors.

References

  1. https://www.learncpp.com/cpp-tutorial/converting-constructors-and-the-explicit-keyword/

Graph View

Backlinks

  • Function overload resolution in C++

Created with Quartz v4.5.2 © 2026

  • Made with ❤️ by Nitin