parameters: (cls, original, typenames, class_instantiations,
                    method_instantiations, instantiated_args, parent)
return_statement: return InstantiatedStaticMethod(method,
                                          instantiations=method_instantiations)
docstring: Class method to construct object as required by InstantiationHelper.
docstring_summary: Class method to construct object as required by InstantiationHelper.
docstring_tokens: Class method to construct object as required by InstantiationHelper .
function: def construct(cls, original, typenames, class_instantiations,
                    method_instantiations, instantiated_args, parent):
          """Class method to construct object as required by InstantiationHelper."""
          method = parser.StaticMethod(
              name=original.name,
              return_type=instantiate_return_type(original.return_type,
                                                  typenames,
                                                  class_instantiations +
                                                  method_instantiations,
                                                  parent.cpp_typename(),
                                                  instantiated_class=parent),
              args=parser.ArgumentList(instantiated_args),
              template=original.template,
              parent=parent,
          )
          return InstantiatedStaticMethod(method,
                                          instantiations=method_instantiations)
function_tokens: def construct ( cls , original , typenames , class_instantiations , method_instantiations , instantiated_args , parent ) : method = parser . StaticMethod ( name = original . name , return_type = instantiate_return_type ( original . return_type , typenames , class_instantiations + method_instantiations , parent . cpp_typename ( ) , instantiated_class = parent ) , args = parser . ArgumentList ( instantiated_args ) , template = original . template , parent = parent , ) return InstantiatedStaticMethod ( method , instantiations = method_instantiations )