It is a class defined in the scope of a function _ any function, whether a member functions or a free function. For instance:
// Example : Local class
//
int f()
{
class LocalClass
{
// ...
};
// ...
};
Such as nested classes, local classes may be a useful tool for managing code dependencies.