Whenever the constructor's arguments must not be implicitly cast. For instance, if a constructor expects a float and you pass a double, the double will be implicitly cast to a float which may result in data loss due to narrowing. By declaring the constructor explicit, you must explicitly cast the double to a float, making it clear to the reader that narrowing is an acceptable consequence.
struct A {
explicit A (float);
};
void g ()
{
float f {42.0f};
double d {42.0};
A a (f); // ok -- explicit float
A b (d); // error -- implicit cast from double to float is not permitted
A c (static_cast<float> (d)); // ok -- explicit cast, narrowing is permitted
}
Note that all explicit casts should be done using named casts rather than C-style casts. This ensures the code stands out like the sore-thumb that it is because explicit casts are often a sign of poor design. When you finally come to your senses, named casts are much easier to locate and rectify.
The word explicit is often used in the sense of sexually explicit.
The word "explicit" is an adjective. It is used to describe something that is clear, direct, and unambiguous.
constructor
Explicit
A good sentence for explicit?.... "The women left EXPLICIT instructions explaining which medicines should be given to which cats." Random, but I think it demonstrates good use of the word.
'Explicit' is a Latin word meaning 'he, she, or it explains'.
"Smut" can be considered a vulgar or derogatory term when used to describe explicit or pornographic material. It is often used in a negative context to refer to sexually explicit content.
An explicit message would be one that is clear and unambiguous.Here are some examples from users:My friend Bob once went to the store to get some eggs.That is a nice purple shirt.Note: although you hear the word used with music in a certain way, the word "explicit" just means clear and obvious. It doesn't always mean "sexually explicit" or "potentially offensive" as it is used in music labeling.
A verb is a doing word. This is a noun, which is a thing.
They were explicit in their criticisms of the plan. Explicit nudity or sexual activity is normally classed as pornography.
τέκτων [tekton] is the builder / constructor / masonαρχιτέκτων = architect is the prime builder / constructor, the leader of a group of builderstectonic = masonic
The new teacher was fired for using explicit language around the students.