2007-03-01ãã1ã¶æéã®è¨äºä¸è¦§
question:1174986855 valgrind ã§ã¡ã¢ãªã¼ãªã¼ã¯ãæ¤åºãããã®ã¯ãã©ããã std::allocator ãåå ã®ããã ã ãã¹ãããã°ã©ã #include <memory> int main() { std::allocator<int> allocator; int *ip = allocator.allocate(1); allocator.deallocate(ip, 1); } ãã¹</int></memory>â¦
ãã®ãã¼ã¸ã¯ããªãå°ç¨ã®æ¥è¨ï¼ããã°ï¼ã§ãã*1ãã£ãããæ¥è¨ãæ¸ãããã¯ãªãã¯ãã¦æåã®è¨äºãæ¸ãã¦ã¿ã¾ããããã¯ã¦ãªãã¤ã¢ãªã¼ã®ä¸çªç°¡åãªä½¿ãæ¹ãç¥ãããæ¹ã¯ã以ä¸ã®åç»ãã覧ãã ãããï¼åçãã¿ã³ãã¯ãªãã¯ããã¨ãã¯ã¦ãªãã¤ã¢ãªã¼ã®ä½¿â¦