.. Generated automatically by cpp2rst .. highlight:: c .. role:: red .. role:: green .. role:: param .. _triqs__hilbert_space__sub_hilbert_space__has_state: triqs::hilbert_space::sub_hilbert_space::has_state ================================================== *#include * **Synopsis** .. rst-class:: cppsynopsis | bool :red:`has_state` (fock_state_t :param:`f`) const Check if a given Fock state belongs to this subspace Parameters ^^^^^^^^^^ * :param:`f` Fock state in question Returns ^^^^^^^ `true` if `f` belongs to the subspace, `false` otherwise