CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 08:44:32 GMT
content-type: text/html; charset=utf-8
cf-ray: 96529d9e9ff37679-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=255d139a-17e6-4c8b-8042-9107f0ce8a05; expires=Sun, 26 Jul 2026 08:44:32 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 440ffb11-06cb-432e-89f7-c668a2da6daf
x-worker-origin-response-time: 490000000
x-dns-prefetch-control: off
set-cookie: prov=255d139a-17e6-4c8b-8042-9107f0ce8a05; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=CLV_xaaNXkzMg7akFV0wIdfu4wpWBHqxdU8IuM6DLis-1753519472-1.0.1.1-NpnMfudAri3VDqk.zVNtIC3u7iE4l2AweOalq8UTycTfCIrA_F5lh5jKsO8h.cpRCPWRVxLZv44KkPTGLSlFCVmOZKYbn6iV6HeWmkzd.HA; path=/; expires=Sat, 26-Jul-25 09:14:32 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=yHRY7SOYKbXrLzDJr4DRsmShlO96DplroXamlGcxOIs-1753519472931-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'overloading' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [overloading]
The terms overloading and overloaded may refer to: - Constructor and method overloading, a type of polymorphism where different functions with the same name are invoked based on the data types and number of the parameters passed - Operator overloading, a form of functional or method overloading where the action being overloaded is an operator, such as + or -
97 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
114
views
Runtime function overloading / dynamic dispatch for Python (2nd revision)
Second revision of the original post: Function overloading / dynamic dispatch for Python
TL;DR:
Improved version of this library[^1] based on previous reviews and criticism. It provides runtime ...
5
votes
2
answers
1k
views
Function overloading / dynamic dispatch for Python
UPDATE: Second revision on separate post. Runtime function overloading / dynamic dispatch for Python (2nd revision)
When I first started using Python I had a rough time dealing with some of it's ...
-2
votes
1
answer
91
views
Initializing an object using a staticmethod
I've an object that looks like this, and users have been populating the attributes post-initialization, e.g.
...
5
votes
1
answer
276
views
uint24_t implementation ported to Windows
I coded stuff for an embedded device where int is 24bits. I wanted to port uint24_t and ...
5
votes
1
answer
230
views
Is there a more idiomatic way than this to use template-generic C++23 multidimensional array subscripts?
C++23 is going to add multidimensional array subscript operators to the language, yippee!
Alas, I have not yet come across a way to adapt them to types where the number of dimensions is templated, so ...
1
vote
2
answers
178
views
A simple String class and its special member functions
I am learning the behavior of C++'s special member function, using a naive String class as example. (The code is modified from this tutorial) Here is the ...
2
votes
1
answer
96
views
API design for Implementing NaN/Unknown values for custom numeric type
I'm gradually writing an arbitrary-precision arithmetic library for C++. I've decided it could be useful to have the default constructor produce an object of indeterminate value, rather than relying ...
4
votes
1
answer
321
views
Comparison operator for ranges C++
If you want to lexicographically compare two vectors in C++, you can simply write vec1 <=> vec2. But instead, if you want to compare them reversed, it is not ...
2
votes
2
answers
349
views
Template Complex class
I have created a class Complex which represents a complex number of any arbitrary arithmetic type. Overloads are given for the 4 common functions, addition, ...
0
votes
1
answer
77
views
Almost identical methods to print an array, differing only by argument type [closed]
It's very basic. I'm learning C# and I want a method to print an array in a readable format. My array could be integers, doubles, or strings. I have implemented method overloading.
From the fact that ...
12
votes
3
answers
2k
views
Matrix implementation
I am trying to implement an optimal and fast running matrix in C++. I need some review of the code and ideas on how to improve the code quality if it shall be.
...
1
vote
1
answer
283
views
Syntax to Overload the Post-Increment Operator ++ as a Nonmember Function
I know this may be a silly question, but... is it really necessary to add the parameter name (int <parameter_name>), instead of just (int) in a definition of an operator function to overload &...
2
votes
1
answer
222
views
Operator overloading in Image class implementation in C++
This is a follow-up question for Dictionary based non-local mean implementation in C++. There are some issues about operators (operator+ and ...
4
votes
3
answers
974
views
C++ money class for basic banking application
I wanted to get my code reviewed as I have tried to implement a basic Money class to represent money values in c++. Can anyone tell me if I am implementing my basic arithmetic operator overloads ...
2
votes
2
answers
557
views
Fractions in C++
I started learning classes and operator overloading in C++. To test my skills I decided to make a Fraction class with all necessary operations.
I would appreciate improvements and suggesstions on my ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
c++ × 63
object-oriented × 15
c# × 13
c++11 × 13
beginner × 10
python × 10
template × 9
python-3.x × 7
polymorphism × 5
classes × 4
integer × 4
java × 4
performance × 4
strings × 4
generics × 3
constructor × 3
c++14 × 3
bitwise × 3
matrix × 3
api × 2
algorithm × 2
asp.net × 2
boost × 2
more related tags
Hot Network Questions
- Blinded despite Blindsight?
- Moving multiplying cells away
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- Are classified documents subject to a subpoena in discovery?
- Dystopian 80s sci-fi movie about the USA choosing mediocrity
- Why does the node Bounding Box suddenly produce a different result in version 4.5?
- leftmargin in enumerate
- Balancing a Holy Water Bomb
- Does Philosophy Need Quotes?
- How do Francophones hear "ChatGPT"?
- Why is 0.0 printed as 0.00001 when rounding upward?
- Can you yaw an airplane by only using differential thrust?
- When was the last time all alive humans stayed on earth?
- Break long equation: vertical alignment of indentation
- Is it okay to email researchers if I’m just a high school student?
- Will an error in two of my published papers affect my PhD thesis evaluation?
- What does this emblem mean?
- Is the surface of Mars or the Moon mostly (or relatively) homogeneous, unlike the Earth?
- How many simple groups are there of a given infinite cardinality?
- About security concerns using in find -exec vs interactively performing the same task
- When and why is fwait necessary when using the 8087 coprocessor?
- Mars colony book I read in the 80's. The name?