c++


Check if two instances of my class are equal using templates


I want to check if two instances of my class are equal(in C++), there are no pointers in the class. I understand that I would need to override the = operator and manually check all the fields. I am aware of that solution. The problem is that I have like around 100 members in the class, and I would want to do it for many classes of similar sizes.
My questions is if there is a way to templatize this? Is this possible? I am fine using velocity.

Related Links

Reading txt file into 2d array C++
How can I mark a function with an attribute conditionally on the value of a parameter?
Read a text file and store into two different arrays: a string array and float array
converting constructor: How do you explain a function given different arguments in c++
Background in Qt multiplies instead of fitting into window size
C++ pause this program using cin.get()
linking error in utility::conversions::to_string_t in qt creator
readLine() not being saved properly
Check socket with select() before using send()
Error: “Function” not declared in this scope
syntax for array of pointers in C++
Why the prvalue below in [expr.ref]/2?
How to access data from `std::ostringstream` without copying it [duplicate]
Why can't we generalize the pointer declaration?
C++ invalid order of execution for cin and cout on XCode
Tree and its preorder traversal - Code error

Categories

HOME
google-maps
java-ee
inno-setup
instagram
environment-variables
sharppcap
basecamp
bloomberg
pstricks
ios8
spring-transactions
codeception
spark-dataframe
slim
jestjs
bpm
sourceforge
markup
integer
zillow
moshi
fgets
summary
gnome
xbuild
ebcdic
fxml
week-number
nexmo
cad
webm
rcp
artoolkit
layer
fixtures
tridion
digestive-functors
marytts
sw-precache
rethinkdb-python
getelementsbyclassname
pwd
cakephp-3.3
javassist
invoke
heyzap
live-connect-sdk
jquery-ui-tabs
svg-edit
git-stash
mechanize
antivirus-integration
anthill
graphic-effects
oracle-streams
mediafire
blackberry-simulator
httpful
velocity.js
heapsort
custom-taxonomy
meter
html5builder
pull-request
xmlpullparser
unexpectendoffile
protection
apache-roller
google-client
ontouchevent
microsoft.mshtml
ironscheme
kismet-wireless
sapb1
componentone
gliffy
httplib
linux-capabilities
fad
orca
kooboo
knockout-mapping-plugin
kiwi
android-handlerthread
start-stop-daemon
google-playground
mapstraction
circular-reference
readelf
dotfuscator
pasteboard
mindmapping
tunneling
smalldatetime
tomahawk
viewexpiredexception
id-generation
reverse-debugging
laconica

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile