tagion_hibon_remove_by_index

extern (C)
int
tagion_hibon_remove_by_index

Examples

HiBONT* h = new HiBONT;
int rc = tagion_hibon_create(h);
assert(rc == ErrorCode.none);

const string key = "a";
rc = tagion_hibon_add_bool(h, &key[0], key.length, true);
assert(rc == ErrorCode.none);

bool result;
rc = tagion_hibon_has_member(h, &key[0], key.length, &result);
assert(rc == ErrorCode.none);
assert(result == true);

rc = tagion_hibon_remove_by_key(h, &key[0], key.length);
assert(rc == ErrorCode.none);
rc = tagion_hibon_has_member(h, &key[0], key.length, &result);
assert(rc == ErrorCode.none);
assert(result == false);