int omp_get_max_teams(void);
Summary The omp_get_max_teams routine returns an upper bound on the number of teams that could be created by a teams construct without a num_teams clause that is encountered after execution returns from this routine.
Binding The binding task set for an omp_get_max_teams region is the generating task.
Effect The value returned by omp_get_max_teams is the value of the nteams-var ICV of the current task. This value is also an upper bound on the number of teams that can be created by a teams construct without a num_teams clause that is encountered after execution returns from this routine.