// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_TEMPLATE_UTIL_H_ #define BASE_TEMPLATE_UTIL_H_ #pragma once namespace base { // template definitions from tr1 template struct integral_constant { static const T value = v; typedef T value_type; typedef integral_constant type; }; template const T integral_constant::value; typedef integral_constant true_type; typedef integral_constant false_type; template struct is_pointer : false_type {}; template struct is_pointer : true_type {}; } // namespace base #endif // BASE_TEMPLATE_UTIL_H_