"You know, now that I actually pay attention to myself, I find myself const correcting his grammar. Kind of annoying, no?"
"I like how they're const blasting the music in the car, even though the speakers are going to blast."
"I like how they're const blasting the music in the car, even though the speakers are going to blast."
by Sho Fo-Sho February 21, 2009
Get the Const mug.const is a qualifer that, when applied, will make sure that const variables are read-only. Such attempt to modify a const variable directly will result in a compiler error.
Additionally, const variables mut be initialized upon declaration.
Another use of const is to make functions const. Const functions promises to NOT modify member variables of its' class. The const keyword is placed after the identifier, but before the function body.
Additionally, const variables mut be initialized upon declaration.
Another use of const is to make functions const. Const functions promises to NOT modify member variables of its' class. The const keyword is placed after the identifier, but before the function body.
const int c{5}; // uniform initilization
// now c is const, any attempt to modify it results in an error
c = 6; // error, c is const
int d;
d = c; // fine, we're not modifing c
// another example:
class A
{
int a;
public:
A(): a(5) {}
void incrementA() { ++a; }
void incrementA2() const { ++a; } // error, incrementA2 is const, and will not modify a
};
// now c is const, any attempt to modify it results in an error
c = 6; // error, c is const
int d;
d = c; // fine, we're not modifing c
// another example:
class A
{
int a;
public:
A(): a(5) {}
void incrementA() { ++a; }
void incrementA2() const { ++a; } // error, incrementA2 is const, and will not modify a
};
by SomeGuyThatDoesn'tIncludeSex September 16, 2019
Get the const mug.Related Words
constance
• constipation
• constitution
• constipated
• Constantinople
• Constantine
• constantinos
• Constant
• Constantin
• Constanza
class Something
{
int a,b;
public:
Something(int a, int b): this->a(a), this->b(b)
{}
void doSomething() {} // is translated into "void doSomething(Something* const this) {}"
// The T in "T* const this" is replaced with the class type
friend void doSomething2() {} // is not translated, as it is NOT a member function
};
void doSomething2() {}
{
int a,b;
public:
Something(int a, int b): this->a(a), this->b(b)
{}
void doSomething() {} // is translated into "void doSomething(Something* const this) {}"
// The T in "T* const this" is replaced with the class type
friend void doSomething2() {} // is not translated, as it is NOT a member function
};
void doSomething2() {}
by SomeGuyThatDoesn'tIncludeSex September 16, 2019
Get the T* const this mug.A person of east coast decent who moved west and lost all sensibilities from the old country... Lives in multiple places in California, travels abroad multiple times a year, eats only the freshest, organic, non gmo, cage free, range free diet while sitting watching jets highlights from 1993
That bitch be trippin yo, his west coast elitist ass ain’t comin back to the motherland without an attitude adjustment..I’m gonna make dat ho pay for a slice at m&s and a coke... you got that right bra!!
by Tony tea bags lopinto January 21, 2019
Get the WEST COAST ELITIST mug.The subsequent elation and unfettered spending garnered by the newfound wealth one acquired by dragging an overfilled change jar down to the local Coinstar machine.
After paying bills and buying gas, Drew was feeling broke until he won the Coinstar Lottery.
Bo was buying rounds of drinks like he won the Coinstar lottery.
Melissa's 'night in' changed to her 'night out' after she won the Coinstar lottery.
Bo was buying rounds of drinks like he won the Coinstar lottery.
Melissa's 'night in' changed to her 'night out' after she won the Coinstar lottery.
by thePhatMan July 7, 2008
Get the coinstar lottery mug.This is possibly the most annoying phrase in the real-time-strategy game Starcraft.
The basic objective of Starcraft is to make a big army to destroy your opponent, however you have this army-size limit known as 'supply' that can only be increased by building a specific building, and for the alien faction 'protoss', that building is the pylon. So every 2-4 soldiers you build, you most build another pylon to sustain them. If you forget, a voice says "YOU MUST CONSTRUCT ADDITIONAL PYLONS", and at that point, you realise that you can't build any more guys until you send a worker to build the pylon, and then wait for the pylon to finish. Then, 4 soldiers later, you will have to build ANOTHER one.
What makes this phrase especially annoying is how often the guy says it if you forget to build them, because soldiers of the protoss race take up so much supply, and their pylons provide such little supply.
The basic objective of Starcraft is to make a big army to destroy your opponent, however you have this army-size limit known as 'supply' that can only be increased by building a specific building, and for the alien faction 'protoss', that building is the pylon. So every 2-4 soldiers you build, you most build another pylon to sustain them. If you forget, a voice says "YOU MUST CONSTRUCT ADDITIONAL PYLONS", and at that point, you realise that you can't build any more guys until you send a worker to build the pylon, and then wait for the pylon to finish. Then, 4 soldiers later, you will have to build ANOTHER one.
What makes this phrase especially annoying is how often the guy says it if you forget to build them, because soldiers of the protoss race take up so much supply, and their pylons provide such little supply.
by thecell98 January 21, 2015
Get the you must construct additional pylons mug.The Wadsworth Constant is the fundamental idea that the true meaning of a video, conversation, or comment approaches importance after approximately 30% of it has been skipped over.
The above definition, for instance, has 180 characters. After applying the Wadsworth Constant, we skip over 52 characters (29%). The definition now reads,
"the true meaning of a video, conversation, or comment approaches importance after approximately 30% of it has been skipped over."
"the true meaning of a video, conversation, or comment approaches importance after approximately 30% of it has been skipped over."
by ShigalHammoud October 2, 2011
Get the Wadsworth Constant mug.