Cantera/clib/src/Cabinet.h
int add(M* ptr) {
        //try {
        __table.push_back(ptr);
        return static_cast<int>(__table.size()) - 1;
        //}
        //catch (CanteraError) {return -1;}
        //catch (...) {return -999;}
    }
/** 
     * Add a new object. The index of the object is returned.  
     */
Add a new object. The index of the object is returned.
Add a new object . The index of the object is returned .
int add(M* ptr) {
        __table.push_back(ptr);
        return static_cast<int>(__table.size()) - 1;
    }
int add ( M * ptr ) { __table . push_back ( ptr ) ; return static_cast < int > ( __table . size ( ) ) - 1 ; }
Add a new object.
Add a new object .
//try {
 //}
 //catch (CanteraError) {return -1;}
 //catch (...) {return -999;}
