src/third_party/abseil-cpp/absl/strings/cord.cc
static bool RepMemoryUsageLeaf(const CordRep* rep, size_t* total_mem_usage) {
  if (rep->tag >= FLAT) {
    *total_mem_usage += rep->flat()->AllocatedSize();
    return true;
  }
  if (rep->tag == EXTERNAL) {
    *total_mem_usage += sizeof(CordRepConcat) + rep->length;
    return true;
  }
  return false;
}
// If the rep is a leaf, this will increment the value at total_mem_usage and
// will return true.
If the rep is a leaf, this will increment the value at total_mem_usage and
will return true.
If the rep is a leaf this will increment the value at total_mem_usage and will return true .
static bool RepMemoryUsageLeaf(const CordRep* rep, size_t* total_mem_usage) {
  if (rep->tag >= FLAT) {
    *total_mem_usage += rep->flat()->AllocatedSize();
    return true;
  }
  if (rep->tag == EXTERNAL) {
    *total_mem_usage += sizeof(CordRepConcat) + rep->length;
    return true;
  }
  return false;
}
static bool RepMemoryUsageLeaf ( const CordRep * rep , size_t * total_mem_usage ) { if ( rep -> tag >= FLAT ) { * total_mem_usage += rep -> flat ( ) -> AllocatedSize ( ) ; return true ; } if ( rep -> tag == EXTERNAL ) { * total_mem_usage += sizeof ( CordRepConcat ) + rep -> length ; return true ; } return false ; }
If the rep is a leaf, this will increment the value at total_mem_usage and
will return true.
If the rep is a leaf this will increment the value at total_mem_usage and will return true .