I started out programming 5 years ago in java, so when I moved over to c++ 2 years ago, implementations of member functions were rather irritating.
Foo::bar(){/*some stuff*/}
Foo::baz(){/*some other stuff*/}
Back then I just kinda got used to it, but recently I wondered if there was any way to structure code to avoid typing that Foo:: every function, perhaps something like:
Foo::{
bar(){//some stuff}
baz(){//some other stuff}
}
I've found that even after 2 years I still have trouble reading even my own code because the name of the function itself isn't the first thing in the line.
edit: Since this question is a duplicate, I thought I would share one thing I found clicking on links. This is definitively not possible at the moment, but there is a proposal to add it to the standard. Don't know if or when it might actually get added, but if you're reading this a few years from now this could be a good lead.