MCPcopy Create free account
hub / github.com/ceph/ceph / def

Method def

src/common/ceph_json.cc:683–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

681}
682
683string JSONFormattable::def(const string& def_val) const {
684 if (type == FMT_NONE) {
685 return def_val;
686 }
687 return val();
688}
689
690int JSONFormattable::def(int def_val) const {
691 if (type == FMT_NONE) {

Callers 3

getMethod · 0.80
get_intMethod · 0.80
get_boolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected