-/* Copyright (c) 2009-2022. The SimGrid Team.
+/* Copyright (c) 2009-2023. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
#include <string>
#include <map>
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
class Info : public F2C{
std::map<std::string, std::string, std::less<>> map_;
static void unref(MPI_Info info);
void set(const char* key, const char* value) { map_[key] = value; }
int get(const char* key, int valuelen, char* value, int* flag) const;
- std::string name() const override {return std::string("MPI_Info");}
+ std::string name() const override { return "MPI_Info"; }
int remove(const char* key);
int get_nkeys(int* nkeys) const;
int get_nthkey(int n, char* key) const;
static Info* f2c(int id);
};
-}
-}
+} // namespace simgrid::smpi
#endif