CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 04:44:07 GMT
content-type: text/html; charset=utf-8
cf-ray: 96597acdcf46ea32-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=ee422a56-1623-44fe-a0cd-5995c284d3c6; expires=Mon, 27 Jul 2026 04:44:06 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: d45a3eb0-9329-4691-8fe8-c0af05e767ac
x-worker-origin-response-time: 485000000
x-dns-prefetch-control: off
set-cookie: prov=ee422a56-1623-44fe-a0cd-5995c284d3c6; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=mgNlHXrAL1_bwoyuNclPG1KgoqTbbGomzCSUijqqX74-1753591447-1.0.1.1-ZeHqLr0Rlcno0J0PfJP8Pp82owoL6Rc.jUh3FS63I3rtkiRQWOmV0OaM4hu8QtP8r8p4ICZY15yDSExw_G5PJ7sFfaiLHgz4C4LEXQdMcz8; path=/; expires=Sun, 27-Jul-25 05:14:07 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=CZSp80tE5477b1A04kCHZFTH4m.kUDwgttNryT53hSg-1753591447193-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
80
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
- Why aren't there baleen whales at about the size of a dolphin?
- Story that taught cryptography in the form of a manga
- Easy ways to draw vector diagrams in TikZ?
- Not being introduced to the team – should I ask for it?
- Why am I winning always? A coincidence perhaps?
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- What's the difference between an eVisa and ETA travel authorization?
- JK flip-flop timing diagram: is Wikipedia correct?
- Consecutive no-date author-year citations by the same author produce inconsistent suffixes
- Are classified documents subject to a subpoena in discovery?
- Did the first sin in the garden of Eden actually take place before the fruit was eaten?
- Will an error in two of my published papers affect my PhD thesis evaluation?
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- In Fantastic Four 2025 shouldn't this thing have taken years?
- What is the meaning of 'Tel.......,qui......'
- Blinded despite Blindsight?
- Lay explaination of 'lower evolutionary constraint genes'?
- Meaning of 芭蕉 in Tang age
- What is the best way to bevel these corners without these deformations showing?
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- Are you required to protect trade secrets revealed to you even if you didn't sign an NDA?
- What does it mean to "cancel" a command in the linux kernel and how can one do so?
- When did the OEIS get even better?
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?