예제 #1
0
파일: class-util.cpp 프로젝트: 1mr3yn/hhvm
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return name->isame(s_Vector.get()) ||
         name->isame(s_Map.get()) ||
         name->isame(s_StableMap.get()) ||
         name->isame(s_Set.get()) ||
         name->isame(s_FrozenVector.get()) ||
         name->isame(s_FrozenSet.get());
}
예제 #2
0
파일: class-util.cpp 프로젝트: 2bj/hhvm
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return name->isame(s_Vector.get()) ||
    name->isame(s_Map.get()) ||
    name->isame(s_Set.get()) ||
    name->isame(s_Pair.get()) ||
    name->isame(s_ImmVector.get()) ||
    name->isame(s_ImmSet.get()) ||
    name->isame(s_ImmMap.get());
}
예제 #3
0
bool is_collection(res::Class cls) {
  auto const name = cls.name();
  return collections::isTypeName(name);
}