casbin/model/model.cpp
std::shared_ptr<Model> Model::NewModelFromFile(const std::string& path) {
    std::shared_ptr<Model> m = NewModel();
    m->LoadModel(path);
    return m;
}
// NewModel creates a model from a .CONF file.
NewModel creates a model from a .CONF file.
NewModel creates a model from a . CONF file .
std::shared_ptr<Model> Model::NewModelFromFile(const std::string& path) {
    std::shared_ptr<Model> m = NewModel();
    m->LoadModel(path);
    return m;
}
std :: shared_ptr < Model > Model :: NewModelFromFile ( const std :: string & path ) { std :: shared_ptr < Model > m = NewModel ( ) ; m -> LoadModel ( path ) ; return m ; }
NewModel creates a model from a .CONF file.
NewModel creates a model from a . CONF file .