parameters: (self, use_boost: bool)
docstring: Generate the C++ code for wrapping.
  
          If there are two return types, we return a pair<>,
          otherwise we return the regular return type.
docstring_summary: Generate the C++ code for wrapping.
docstring_tokens: Generate the C ++ code for wrapping .
function: def to_cpp(self, use_boost: bool) -> str:
          """
          Generate the C++ code for wrapping.
  
          If there are two return types, we return a pair<>,
          otherwise we return the regular return type.
          """
          if self.type2:
              return "std::pair<{type1},{type2}>".format(
                  type1=self.type1.to_cpp(use_boost),
                  type2=self.type2.to_cpp(use_boost))
          else:
              return self.type1.to_cpp(use_boost)
function_tokens: def to_cpp ( self , use_boost : bool ) -> str : if self . type2 : return "std::pair<{type1},{type2}>" . format ( type1 = self . type1 . to_cpp ( use_boost ) , type2 = self . type2 . to_cpp ( use_boost ) ) else : return self . type1 . to_cpp ( use_boost )