예제 #1
0
bool PutByIdVariant::reallocatesStorage() const
{
    if (kind() != Transition)
        return false;
    
    if (oldStructureForTransition()->outOfLineCapacity() == newStructure()->outOfLineCapacity())
        return false;
    
    return true;
}
예제 #2
0
bool PutByIdVariant::reallocatesStorage() const
{
    switch (kind()) {
    case Transition:
        return oldStructureForTransition()->outOfLineCapacity() != newStructure()->outOfLineCapacity();
    case Setter:
        return true;
    default:
        return false;
    }
}