casbin/model/model.cpp
std::shared_ptr<Model> Model::NewModelFromString(const std::string& text) {
    std::shared_ptr<Model> m = NewModel();
    m->LoadModelFromText(text);
    return m;
}
// NewModel creates a model from a std::string which contains model text.
NewModel creates a model from a std::string which contains model text.
NewModel creates a model from a std :: string which contains model text .
std::shared_ptr<Model> Model::NewModelFromString(const std::string& text) {
    std::shared_ptr<Model> m = NewModel();
    m->LoadModelFromText(text);
    return m;
}
std :: shared_ptr < Model > Model :: NewModelFromString ( const std :: string & text ) { std :: shared_ptr < Model > m = NewModel ( ) ; m -> LoadModelFromText ( text ) ; return m ; }
NewModel creates a model from a std::string which contains model text.
NewModel creates a model from a std :: string which contains model text .