多维向量到unique_ptr数组

时间:2016-06-21 12:06:32

标签: c++ multidimensional-array unique-ptr

我想重新制作部分代码以使用unique_ptr而不是2D-vector 以下是我用于填充结果向量的方法:

<div class="form-add">
    <h2><?php echo $this->__('Write Your Own Review') ?></h2>
    <?php if ($this->getAllowWriteReviewFlag()): ?>
    <form action="<?php echo $this->getAction() ?>" method="post" id="review-form">
        <?php echo $this->getBlockHtml('formkey'); ?>
        <?php echo $this->getChildHtml('form_fields_before')?>
        <h3><?php echo $this->__("You're reviewing:"); ?>
            <span><?php echo $this->escapeHtml($this->getProductInfo()->getName()) ?></span>
        </h3>

        <div class="fieldset">
            <?php if( $this->getRatings() && $this->getRatings()->getSize()): ?>
                <h4><?php echo $this->__('How do you rate this product?') ?> <em class="required">*</em></h4>
                <span id="input-message-box"></span>
                <table class="data-table review-summary-table ratings" id="product-review-table">

现在在我看来相当混乱。 如何重新制作此部件以与unique_ptr数组一起使用? 谢谢

0 个答案:

没有答案